Ambassador to the UN Nikki Haley's resignation: Why did it happen, and who takes over now?

Ambassador to the UN Nikki Haley’s motivation for leaving is unclear. What is apparent: Her successor won’t have the same freedom with Donald Trump.