If you work for them in visit visa then you cannot do anything.

But if you are in work visa then contact your embassy immediately and file a complaint to them mentioning to get salary and go home and get a copy.

Then visit CEID with embassy paper and inform them. They will get your salary, passport and ticket and send you home.

This is the way. Thousands are doing that