If you are already out of Qatar. You only need NOC from your sponsor. It is just a letter in Arabic and signed by the authorized signatory of your company, thats all. It will take hardly one hour. But if you are in Qatar then you need sponsorship transfer letter, which has to be attested by the Ministry of Interior, that will also not take more than 3 days.