. . ", guardian, person or agency entitled to the legal custody of said delinquent juvenile shall be secured prior to his being sent to another state; and (7) make provision for such other matters and details as shall be necessary to protect the rights and equities of such delinquent juveniles and of the cooperating states." . . .