Murexway:
If UAL plays their cards right, they won't terminate her provided she go under the care of a psychiatrist jointly agreed to by ALPA and the company. Further, that she signs a release that at the end of therapy the psychiatrist will advise the company, ALPA, and the FAA whether she is fit to be issued an FAA medical certificate.
The chances of the psychiatrist giving her the thumbs up will be about zero, so then she is terminated because of lack of certification, or medically retired, depending on the provision of the UAL/ALPA CBA.