Paula try to learn from what you are going through so you can get out of it soon. As long as you keep trying it your way you will always stay in the same spot. Give it all to God and wait on Him while you let Him see you are learning by not concentrating so much in your situation. This is done by looking away from you and look around you, see how many others are also hurting out there. Do something to help them, as you do this you will also be heal and your situation will look less grim.
Be grateful that your children are happy where they are for now with people that care for them and are directing them the right way, also they are getting a good education. They are learning what a real family is without parents shouting or fighting with them. They will learn to be better parents to their own children, now isn't that something to be glad and grateful for? Since you yourself have said they were not getting that at home when they were with you and your x.
About your x as long as you keep wanting him back when he doesn't want you, you will never be able to be open to a real loving relationship with a good man. That is what is not helping you to do better at work, and you are feeling so empty, lonely, and sad. Let God come into your heart and fill the void in you and give you peace and joy. Only you are holding yourself from getting all that.
Lord open Paula's eyes and let her see only she can let go when she gives it all to you. No matter how much we pray for her as long as she wants to keep clinging to her past she will stay in that hole. Please Lord help her to want to come out and reach to you with all her might. Have your perfect will be done in her life, relationship with her children, job, car, home, and finances. Give her strength, wisdom, comfort, and peace of mind. Protect her children wherever they may be and keep directing their steps, also give them a forgiving heart toward their mother. I pray this in Jesus name, amen.