How and why would it reach the middle east in the first place, unless you works of enlightenment thinkers go through France which in turn goes to the Ottomans. From there you could have a sultan take reading maybe try to reconcile it with Islam, and maybe use some ideas to one up the Janisaries and reform and have it spread out from there.