What to do?!?!

Rebecca • Engaged to the ❤️ of my life... Had our sweet baby girl April 20, 2015 😊
I have a 2 week old and she has the hardest time pooping! To the point that she was up from 4:00 pm to midnight in almost constant pain where we brought her to the emergency room. I don't know what to do!! Even holding her wouldn't soothe her 😔 has anyone gone threw something like this and have any advice??