A method for producing a compound of general formula: and the pharmaceutically acceptable salts thereof, wherein: ▪ G 1 is a bond or a linear or branched, saturated or unsaturated hydrocarbon chain comprising 1 to 4 carbon atoms, optionally substituted by one or two alkyl groups, ▪ A is an aryl group, optionally substituted: - in the meta or para position by: • a halogen atom or a cyano, alkoxy, haloalkoxy, acylaminoalkyl or -XR group where X is -O-, -S-, -SO-, -SO 2 - or -CO- and R is an arylalkyl, cycloalkyl or aryl group, each optionally substituted by one or two identical or different substituents, or • a cycloalkyl, aryl or arylalkyl group, each optionally substituted by one or two identical or different substituents, - and/or in the ortho or meta position by an alkyl group, and ▪ B is an aryl group, substituted in the ortho position by a heterocycle, and optionally substituted in the ortho' position by an alkyl group, comprising the following steps: reaction of an amine of following formula: wherein G1, A and B are as defined above, with Cl 3 CC -N=C=O to give a compound of following formula: wherein G1, A and B are as defined above, treatment in basic medium of the compound of formula obtained in the preceding step to give a urea of following formula: wherein G1, A and B are as defined above, and Shestakov rearrangement of the urea of formula to give the compound of formula. ▪ G 1 is a bond or a linear or branched, saturated or unsaturated hydrocarbon chain comprising 1 to 4 carbon atoms, optionally substituted by one or two alkyl groups, ▪ A is an aryl group, optionally substituted: - in the meta or para position by: • a halogen atom or a cyano, alkoxy, haloalkoxy, acylaminoalkyl or -XR group where X is -O-, -S-, -SO-, -SO 2 - or -CO- and R is an arylalkyl, cycloalkyl or aryl group, each optionally substituted by one or two identical or different substituents, or • a cycloalkyl, aryl or arylalkyl group, each optionally substituted by one or two identical or different substituents, - and/or in the ortho or meta position by an alkyl group, and - in the meta or para position by: • a halogen atom or a cyano, alkoxy, haloalkoxy, acylaminoalkyl or -XR group where X is -O-, -S-, -SO-, -SO 2 - or -CO- and R is an arylalkyl, cycloalkyl or aryl group, each optionally substituted by one or two identical or different substituents, or • a cycloalkyl, aryl or arylalkyl group, each optionally substituted by one or two identical or different substituents, • a halogen atom or a cyano, alkoxy, haloalkoxy, acylaminoalkyl or -XR group where X is -O-, -S-, -SO-, -SO 2 - or -CO- and R is an arylalkyl, cycloalkyl or aryl group, each optionally substituted by one or two identical or different substituents, or • a cycloalkyl, aryl or arylalkyl group, each optionally substituted by one or two identical or different substituents, - and/or in the ortho or meta position by an alkyl group, and ▪ B is an aryl group, substituted in the ortho position by a heterocycle, and optionally substituted in the ortho' position by an alkyl group, reaction of an amine of following formula: wherein G1, A and B are as defined above, with Cl 3 CC -N=C=O to give a compound of following formula: wherein G1, A and B are as defined above, treatment in basic medium of the compound of formula obtained in the preceding step to give a urea of following formula: wherein G1, A and B are as defined above, and Shestakov rearrangement of the urea of formula to give the compound of formula.