It took eight months of mediation and the joint efforts of both old and new US administrations, alongside those of Egypt and Qatar, to get Israel and Hamas to commit.