For Hamas this is surviving war, surviving means victory, but public will not be satisfied, they want results....in Israeli media reports future plans are clear, Gaza could wait for a while to finish job with hezbollah, once for all times....unfortunately, there is less common sense in Israel every day, thats why it was necessary to activate extreme measures for the regime, unprecedented, world is asking for being sanctioned such horrific massacre...tribunals are at the very beginning of this loong final agenda...Israel is not able to cope with the pressure of being left alone in even short term...
legitimate resistance organizations are Hamas and Islamic jihad, they will be probably rebranded as compromise under Chinese mediation...so Israel can say that hamas and ij are no more, although same factors are there to stay, and with Iranian and Russian go-ahead, process of creating new stability would start...usa is not necessary interested for this region at all, being few years ago self sufficient in oil and gas...
So, we don't know what final decision will be, and what final look region will get, but we know who will make that decisions...