Whenever you submit an iPhone for repair, Apple always recommend you to backup and reset it to factory first. When the iPhone is in factory reset condition, the technicians have zero reason to ask for your PIN or password (and they shouldn't). iPhones are encrypted, so whenever you reset to factory, there's no way for someone to dig into the storage for your data.
unless the victim unlocked and removed the passcode before shipping the phone in, how was the technician able to gain access to the said photos and videos?
just to put my mind at ease, there is absolutely no way for Apple technicians(Apple itself or one of its contractors) to gain access to my data if my iPhone remains protected by a 6-digit passcode, right? I don't want to be sued by their technicians if they suffer permanent emotional trauma by seeing pictures of my grotesque 23-pound overweight body.