My dear Lady:
Being in the profession for more than four decades I have learned:
Never scold or belittle an employee
Never ever do so in front of others
If at all there is an issue, it needs be discussed in private
Not to be reprimanded, but to be counseled and advised
Your boss's attitude - the beans now being spilled -
Would have belittled himself in the eyes of everyone
Talk to your HR Manager, seek his counsel
Forgive, and pray for, your boss
(Remind him you have a resignation note ready in your handbag)
And he will begin seeing where he stands
Among his associates that keep his department / service on the move
Arif ur Rehman