Maintenance Dept.
If the a/c is tech, the airline doesn’t make money and everyone in all the other departments can go home. As an operational asset the aeroplane is the money maker…. engineers and crew are joint 2nd in the food chain behind the health of the a/c and i can't remember the last time i heard a pilot tell an engineer what's what.