What are the two roles of a probation officer in juvenile court?

Why is the probation officer at the center of juvenile justice? What are the two roles of a probation officer in juvenile court?