Is cooked chicken brought to work but left unrefrigerated for 5 hours safe to eat?
Probably not, as you left it at danger zone temperatures (Between +40F and +140F [4.4C and 60C])  for so long).

What are the odds of food poisoning? You'll need decide