(D) If a political subdivision refuses to provide an employee with a defense in a civil action or proceeding as described in division (A) of this section, upon the motion of the political subdivision, the court shall conduct a hearing regarding the political subdivision's duty to defend the employee in that civil action. The political subdivision shall file the motion within thirty days of the close of discovery in the action. After the motion is filed, the employee shall have not less than thirty days to respond to the motion.
At the request of the political subdivision or the employee, the court shall order the motion to be heard at an oral hearing. At the hearing on the motion, the court shall consider all evidence and arguments submitted by the parties. The court shall determine whether the political subdivision has the duty to defend the employee under division (A) of this section. The pleadings shall not be determinative of whether the employee acted in good faith or was manifestly outside the scope of employment or official responsibilities.
If the court determines that the political subdivision has the duty to defend the employee under division (A) of this section, the court shall order the political subdivision to defend the employee in the action.