Photocyclization mechanism of enaminoketone