It was a strange situation. A couple of years before the original owner - a friend of mine from high school - had a breakdown. I was one of two VPs at the time. We found outside financing that basically took the company away from him and sold it to someone else. They made us minority owners. A year later THAT company merged with another and we ended up with 5 owners. The idiots we merged with screwed up and lost major contracts, putting us in a financial bind. They convinced one of our owners to get rid of the other two owners on our side, me being one of them.
So they asked me to write down what I did, since they were clueless. At the time I was HR (for 43 employees), IT (32 workstations and 4 servers), AR, AP, and Project Management for about 5,500 orders a year. Basically everything that wasn't actual production or sales. I actually did do sales, but it was only 3% of the $4.7 million in revenue, so it was expendable.
Anyway, they gave me 8 weeks to train the five people who were replacing me. They also "gave" me uncontested unemployment benefits, all the actual money I had put into the company (we had a capital call 12 months earlier and I had to come up with $5K) and health insurance for 30 whole days after termination. I had worked for this company for just shy of 20 years.
Did I tell them about the flaw in the critical software I had written that tracked order production that was going to require a major fix and recompilation of the database within the next few months? Naw.
Good for you! Being indispensable has a great deal of value, they did not see it.