Synthesis and transformations of novel precursors via modified Mannich and aza- Friedel–Crafts reaction