Find all directories in the current working directory (PWD) with a depth between 2 and 4, with names ending in .conf or .jpg, and move them to the ~/oldfiles/ directory.
find "${PWD}" -mindepth2 -maxdepth4 -type d -name "*.conf" -o -name '*.jpg' -exec mv -t ~/oldfiles/ {} \;