Condensation between 5-bromoindole (I) in ether and oxalyl chloride (II) in dichloromethane followed by treatment with dimethylamine provides N,N-dimethyaminoglyoxyl derivative (III), which is then reduced with LiAlH4 in THF to yield compound (IV). Coupling of (IV) with benzoyl chloride (V) by means of Et3N and DMAP in dichloromethane affords benzoylindole derivative (VI), which is then subjected to reaction with tributylstannyl derivative (VII) in toluene in the presence of Pd(PPh3)4 to furnish compound (VIII). Treatment of (VIII) with NaOH in refluxing MeOH gives indole (IX), which is converted into the final product by reduction with LiAlH4 in refluxing THF) and treatment with HCl for the formation of the corresponding hydrochloride salt. Alternatively, the target compound can be obtained as follows: treatment of (IV) with KH in ether and tert-butyllithium in pentane followed by reaction with N-methylpiperidinone (X) affords hydroxy derivative (XI), which is finally converted into the desired product.