Reaction SMILES: [NH2:1][C:2]1[CH:7]=[CH:6][C:5]([C:8]2[C:16]3[C:11](=[N:12][CH:13]=[N:14][C:15]=3[NH2:17])[N:10]([CH:18]3[CH2:23][CH2:22][N:21]([CH:24]4[CH2:29][CH2:28][N:27]([CH3:30])[CH2:26][CH2:25]4)[CH2:20][CH2:19]3)[N:9]=2)=[CH:4][C:3]=1[O:31][CH3:32].[C:33]1([C@@H:39]([CH3:44])[CH2:40][C:41](Cl)=[O:42])[CH:38]=[CH:37][CH:36]=[CH:35][CH:34]=1.[OH-].[Na+]>N1C=CC=CC=1.ClCCl>[OH-:31].[NH4+:1].[NH2:17][C:15]1[N:14]=[CH:13][N:12]=[C:11]2[N:10]([CH:18]3[CH2:23][CH2:22][N:21]([CH:24]4[CH2:29][CH2:28][N:27]([CH3:30])[CH2:26][CH2:25]4)[CH2:20][CH2:19]3)[N:9]=[C:8]([C:5]3[CH:6]=[CH:7][C:2]([NH:1][C:41](=[O:42])[CH2:40][C@@H:39]([C:33]4[CH:38]=[CH:37][CH:36]=[CH:35][CH:34]=4)[CH3:44])=[C:3]([O:31][CH3:32])[CH:4]=3)[C:16]=12
Reactant: C[C@@H](CC(=O)Cl)c1ccccc1
Reactant: COc1cc(-c2nn(C3CCN(C4CCN(C)CC4)CC3)c3ncnc(N)c23)ccc1N
Agent: [Na+]
Agent: [OH-]
Solvent: c1ccncc1
Solvent: ClCCl
Product: COc1cc(-c2nn(C3CCN(C4CCN(C)CC4)CC3)c3ncnc(N)c23)ccc1NC(=O)C[C@H](C)c1ccccc1
Product: [NH4+]
Temperature: -5 °C
Reaction time: 0.33 h
Yield: 135.8 %
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 (3S)-3-phenylbutanoyl chloride (0.420 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. (3S)-3-phenylbutanoyl chloride (0.210 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)-(3S)-3-phenylbutanamide 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.455 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)-(3S)-3-phenylbutanamide. 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)-(3S)-3-phenylbutanamide (0.455 g, 0.782 mmol) in ethyl acetate was treated with a warmed solution of maleic acid (0.272 g, 2.35) in ethyl acetate. The precipitate was filtered under nitrogen and dried on 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)-(3S)-3-phenylbutanamide tri-maleate. 1H NMR (DMSO-d6, 400 MHz) δ 9.199 (s, 1H), 8.261 (s, 1H), 8.1733-8.1528 (d, 1H, J=8.2 Hz), 7.312-7.282 (m, 4H), 7.236-7.232 (m, 1H), 7.211-7.168 (m, 2H), 6.094 (s, 6H), 5.046 (m, 1H), 3.890 (s, 3H), 3.534 (m, 4H), 2.994 (m, 2H), 2.784-2.740 (m, 6H), 2.506-2.470 (m, 8H), 2.442-2.200 (m, 4H), 1.855 (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.64 min (100%).