Synthesis and application of secondary amine derivative of tamarind