Subject to the definitions of the terms and phrases used in this division, whenever a county official or employee is sued for money damages based upon an act or omission that occurred within the scope and course of the employee's job, the county will provide legal representation at no cost to the employee. If a judgment for money damages is entered against the official or employee in his individual or personal capacity, the county shall indemnify the official or employee by satisfying the judgment, but only under the following conditions: (1) Where the official or employee is adjudged to have negligently performed or failed to perform a ministerial act or duty within the scope and course of the employee's job; or (2) Where the official or employee is adjudged to have abused his discretion in the performance of an official function within the scope and course of the employee's job, but only if the judgment provides the official or employee did not act maliciously.