Israel and Hamas have agreed to a cease-fire deal and to release israeli hostages in exchange for palestinian prisoners.