The deal comes after weeks of intensive rounds of indirect negotiations in the Qatari capital Doha between Israel and Hamas, mediated by facilitators from the U.S., Egypt and Qatar.