Copper-mediated oxidative transformation of N-allyl enamine carboxylates toward synthesis of azaheterocycles.