The first thing you need to do, is have a positive attitude. Many people working the same place, or with the same thing, for decades, become so entangled in their job that it is their actual identity. So the first thing you need to do, is appreciate the opportunity to rediscover yourself you have been given. My experience is that several doors opens when one door shuts.
Secondly, if you really seek specific help, you yourself need to be more specific about what you do, what you're good at etc.
That being said, I feel sorry for you and your situation.