It was not immediately clear whether Israel will permit the office to operate while Hamas controls the Palestinian government .