In any case, at the time of a liquidation (due to IP, I think there is a good chance of acquisition) who gets paid back first- Vendors or investors?
Edit to add that I am not an employee but a contractor with invoices for my time.
In almost all cases (bankruptcy or acquired) your time will be discounted as "insider" (you were helping the turn around) time and you might get some back but it won't be nearly what you have invoiced, unless the company is acquired for a sum greater than the debts. In that case you will be made whole. There are exceptions to what I just said though, and most of that will depend on your contract and how they raised money.
Been on this train myself, it is an interesting situation. Best thing to do is get an attorney early and make sure the appropriate paperwork is in place to secure your spot at the table.
Good luck.