In Tehran , Mr. Aghamohammadi said the decision to resume work was made in a meeting by Iran 's supreme religious leader , Ayatollah Ali Khamenei ; the departing president , Mohammad Khatami ; the president-elect , Mahmoud Ahmadinejad ; and other senior leaders .