Turkey's president supported the rebels who overthrew Syria's Bashar Assad and has long supported Hamas, even hosting its leadership.