You searched for: “egopathy
egopathy (s) (noun), egopathies (pl)
A hostile behavior due to a psychopathically exaggerated sense of self-importance: Patients who are experiencing egopathy are characterized by a strong psychological condition that compels them to deprecate others in their constant aggressive and unconceding attitudes.

Obviously egopathy was rampant at Ted's job because a supervisor was firing people for no good reason or justification.