No injunction shall be granted against the animal control department, or any of its officers or agents, except upon court order after due notice and proper hearing.