(2) Prosecutors, probation officers, social workers, or other individuals assigned by the court to conduct a pre-adjudication or pre-disposition investigation, and individuals responsible for supervising or providing temporary or permanent care and custody for minors pursuant to the order of the juvenile court, when essential to performing their responsibilities.