The question is motivated by the report about Hamas shifting its headquarters to Istanbul, Turkey. In the same time, Hamas is considered a terrorist organization by many NATO members, including the US (it is also designated as such by the EU, of which many NATO states are members.)
Related report by Reuters: Turkey's Erdogan says he does not believe Hamas will leave Qatar