FIELD: chemistry.SUBSTANCE: invention relates to the field of organic chemistry, namely a heterocyclic compound of formula (X) and a pharmaceutically acceptable salt thereof, where X, Y and Z, each separately constitute N or C and at least two of them - X, Y or Z – are represent N, and when X represents N, Z represents N; represents a simple or a double bond; W and V are selected from H or unsubstituted C1-C4 alkyl; R1 represents a substituted with 1-2 substituents or unsubstituted mono- or bicyclic C6-C10 aryl; substituted with 1 or 2 substituents or unsubstituted mono- or bicyclic 5-9 membered heteroaryl containing 2-3 heteroatoms selected from N, O and S; wherein the substituent is halogen, nitro, cyano, hydroxyl; unsubstituted or trihaloid substituted C1-C6 alkyl, C1-C6 alkoxy, C1-C6 alkylcarbonyl, -NRaRb, -OC(O)-Rf, unsubstituted phenyl or phenyl substituted with 1-3 R3, or unsubstituted monocyclic 5-6 membered heteroaryl, containing 1 to 2 heteroatoms selected from N and S, or a 5-6 membered heteroaryl containing 1 to 2 heteroatoms, selected from N, substituted by 1 R4; R2 represents C1-C4 alkoxycarbonyl; -NRcRd; substituted with 1-3 substituents or unsubstituted mono- or bicyclic C6-C10 aryl; substituted with 1 substituent or unsubstituted mono- or bicyclic 5-10 membered heteroaryl containing 1 to 2 heteroatoms selected from N, O and S; or substituted by 1 substituent or unsubstituted monocyclic partially unsaturated 6-membered heterocyclyl containing 1 heteroatom selected from N; wherein the substituent is halogen, C2 alkylenedioxy, unsubstituted or trihaloid- or NRcRd-substituted C1-C6 alkyl either C3-C6 cycloalkyl, C1-C6 alkoxy, C1-C6 sulfamide, -NRaRb, -C(O)R', morpholinyl or unsubstituted or substituted R" piperidinyl, wherein R3 is a halogen, cyano, C1-C2 alkylenedioxy, unsubstituted or trihaloid- or morpholinyl substituted C1-C6 alkyl, C1-C6 alkoxy, -NRaRb, -C(O)R' or morpholinyl; R4 represents halogen, unsubstituted C1-C6 alkyl either unsubstituted o