Israel had to AGREE on Hamas' conditions, so its a victory for them. The israeli Radio and some other channels admitted the defeat.
Edit : Conditions : Fixing the electricity factory, give more range for fishing, opening a harbour, opening Gaza airport, open all ports.. and more.
I'm sorry to burst your bubble but I can guarantee you if it wasn't for international pressure Isreal could have steam-rolled over entire Gaza - the reason why both parties stop is not because Gaza had some military pressure that forced Israel to withdraw, both parties stopped due to negotiations - Isreal had to stop if they didn't want to go embargo'd for rest of their lifes by the United Nations due to unwarranted war conflict, warmongering and war crimes.
And a country literally reliant on shipping from western world, can't afford to mess up their internal relations with the outside world, because without them Israel would be already run over. The reason why it had military advantage is because mainly USA supports Israel and that gives them straight out better equipment and straight up advantage.
I don't mean to insult anyone in this conflict, but I think if it didn't come to interference and both sides agree'ing to stop the war, Israel would have probably won the war. Because where they were heading, even if they won the war, they'd lose the country battle, once all the sanctions would hit them. They rather however concealed a defeat than being sanctioned for the remaining of the Israel existence. So yeah, on paper maybe Palestine won, but in reality, nobody really won - Israel just built clear dominance over Palestine, Palestine although got some of territory back, it's nothing to write home about and western countries only strengthened their influence - which is what they really wanted after all.
And the loser? Not Israel, not palestine, but the civilians.