Preparatory process from polyamidoamines and epihalohydrins