If you are in any of other GCC country with valid residence permit then you can come back to Qatar on on-arrival visa if you are not blacklisted.
(and you can contact Qatar embassy in the country where you are right now)
Otherwise you need noc from your previous employer in Qatar