(a) By promulgation of local rules of the juvenile court, a referral may be made to the department of children's services juvenile-family crisis intervention program in the following instances:
(1) Where there is an allegation that a child is unruly; or
(2) Where there is an allegation that a juvenile-family crisis exists.
(b) Nothing in this section shall preclude the court or the department from taking any necessary action that shall be required to provide to a child any protective services, including, but not limited to, emergency protective custody.