Reaction SMILES: [NH2:1]C1C=CC(C2C3C(=NC=NC=3N)N(C3CCN(C4CCN(C)CC4)CC3)N=2)=CC=1[O:31]C.[CH3:33][N:34]1[C:42]2[C:37](=[CH:38][CH:39]=[CH:40][CH:41]=2)[CH:36]=[C:35]1[C:43](Cl)=[O:44].[OH-].[Na+]>N1C=CC=CC=1.ClCCl>[OH-:31].[NH4+:1].[CH3:33][N:34]1[C:42]2[C:37](=[CH:38][CH:39]=[CH:40][CH:41]=2)[CH:36]=[C:35]1[C:43]([NH2:1])=[O:44]
Reactant: COc1cc(-c2nn(C3CCN(C4CCN(C)CC4)CC3)c3ncnc(N)c23)ccc1N
Reactant: Cn1c(C(=O)Cl)cc2ccccc21
Agent: [Na+]
Agent: [OH-]
Solvent: c1ccncc1
Solvent: ClCCl
Product: Cn1c(C(N)=O)cc2ccccc21
Product: [NH4+]
Temperature: -5 °C
Reaction time: 0.33 h
Yield: 2 %

Procedure:
A solution of 3-(4-amino-3-methoxyphenyl)-1-[1-(1-methylpiperidin-4-yl)piperidin-4-yl]-1H-pyrazolo[3,4-d]pyrimidin-4-amine (0.500 g, 1.15 mmol) in pyridine (8 mL) at −5° C. was treated with a solution of 1-methyl-1H-2-indolecarbonyl chloride (0.445 g, 2.3 mmol) in dichloromethane (3 mL). The reaction mixture stirred for 20 min at −5° C., then the dry ice/acetone bath was removed and was stirred at room temperature under a nitrogen atmosphere. 1-methyl-1H-2-indolecarbonyl chloride (0.221 g, 1.15 mmol) was added to the reaction mixture and was stirred for 2 h. Sodium hydroxide (1 N) solution (10 mL) was added and was stirred over night. The organic solvent was removed under reduced pressure, and dichloromethane (20 mL) was added. The layers were partitioned, and the aqueous layer was extracted with dichloromethane (125 mL). The combined organic layers were washed with water, dried over magnesium sulfate, filtered and the solvent removed under reduced pressure. N1-(4-{4-amino-1-[1-(1-methylpiperidin-4-yl)piperidin-4-yl]-1H-pyrazolo[3,4-d]pyrimidin-3-yl}-2-methoxyphenyl))-1-methyl-1H-2-indolecarboxamide was purified by flash chromatography on silica gel using 15% (methanol with 2% ammonium hydroxide) in dichloromethane (10 min), 20% (methanol with 2% ammonium hydroxide) in dichloromethane (15 min), 50% (methanol with 2% ammonium hydroxide) in dichloromethane (7 min) to give 0.463 g (68%) pure N1-(4-{4-amino-1-[1-(1-methylpiperidin-4-yl)piperidin-4-yl]-1H-pyrazolo[3,4-d]pyrimidin-3-yl}-2-methoxyphenyl))-1-methyl-1H-2-indolecarboxamide. A warmed solution of N1-(4-{4-amino-1-[1-(1-methylpiperidin-4-yl)piperidin-4-yl]-1H-pyrazolo[3,4-d]pyrimidin-3-yl}-2-methoxyphenyl))-1-methyl-1H-2-indolecarboxamide (0.463 g, 0.781 mmol) in ethyl acetate was treated with a warmed solution of maleic acid (0.272, 2.34 mmol) in ethyl acetate. The precipitate was filtered under nitrogen, and dried on the lyophilizer to give N1-(4-{4-amino-1-[1-(1-methylpiperidin-4-yl)piperidin-4-yl]-1H-pyrazolo[3,4-d]pyrimidin-3-yl}-2-methoxyphenyl))-1-methyl-1H-2-indolecarboxamide di-maleate. 1H NMR (DMSO-d6, 400 MHz) δ 9.4495 (s, 1H), 8.2848 (s, 1H), 8.1505-8.1301 (d, 1H, J=8.16 Hz), 7.7232-7.7034 (d, 1H, J=7.92 Hz), 7.6054-7.5844 (d, 1H, J=8.4 Hz), 7.3583-7.3012 (m, 4H), 7.1778-7.1406 (m, 1H), 6.0804 (s, 4H), 5.10-5.00 (m, 1H), 4.0403 (s, 3H), 3.9614 (s, 3H), 3.5336 (m, 4H), 3.1879 (m, 2H), 2.9937 (m, 2H), 2.7836 (s, 3H), 2.4979 (m, 3H), 2.2157 (m, 4H), 1.8513 (m, 2H); HPLC Perkin Elmer Pecosphere C18, 3 μM, 33×4.6, 3.5 ml/min 100-100% 50 mM ammonium acetate to acetonitrile in 4.5 minutes, C36H44N6O3 (581.2), 95%. LCMS (Perkin Elmer, Pecosphere C18 column, 3 um particle size, 33×4.6 mm; 100% 50 mM ammonium Acetate in Water to 100% Acetonitrile over 5 min, 3.0 to 3.5 mil/min) Rt 2.76 min (100%).