Israel considers Hamas a terrorist organization and describes Jerusalem as its eternal capital .