Palestinian President Mahmoud Abbas and Prime Minister Ismail Haniyeh have appealed for an end to the fighting between Hamas militiamen and the president 's Fatah faction .