I recall a (unfounded) rumor about one or 2 years ago that Daesh wanted to use Turkey as their main "base" of operation for stuff related to europe, back when the talks started to include Turkey in the EU. The goal was to make Recep the master of the country (Sultan? or what ever it's called) but having Deash control him.
Will be interesting to see how all of this unfold in near futur!