Oh thank goodness for that!
Ok, now I'm not worried about you harming yourself I'll go onto the other bits.
The courts will appoint a CAFCASS officer. These people can range from really good to totally biased in favour of one parent or another. If you are the favourite parent it can be tempting to go along with what they are saying, but crap CAFCASS officers are not good for your children, even if it's what you want to hear.
The point of CAFCASS is to have a neutral party to look after the children's best interests. They will meet with you and your ex, and depending on their age, the children, then write a report with recommendations for the court. The judge will make a ruling based on that report.
The judge won't be interested in helping you keep control of all of the children's time unless there is a real and present danger to them when in their Dad's care.
It might be tempting to try and act to protect your own feelings, but this is the point when you need to make absolutely certain you are not putting yourself before the children. No matter how you feel about your partner, he is their daddy and they love him. That won't change just because you're split up. Keeping them from or minimising their time with their dad to spare your feelings will comeback to bite you (my DH barely speaks to his mother because she wrecked his relationship with his dad by blocking access and making contact difficult after the divorce).