Reaction SMILES: Cl[C:2]1[N:15]2[C:6](=[N:7][C:8]3[C:13]([C:14]2=[O:16])=[C:12]([F:17])[CH:11]=[CH:10][CH:9]=3)[C:5]2[CH:18]=[CH:19][N:20]([S:21]([C:24]3[CH:29]=[CH:28][C:27]([CH3:30])=[CH:26][CH:25]=3)(=[O:23])=[O:22])[C:4]=2[N:3]=1.[CH2:31]([N:33]([CH2:35][C:36]([N:38]1[C:46]2[C:41](=[CH:42][C:43]([O:48][CH3:49])=[C:44]([NH2:47])[CH:45]=2)[CH2:40][CH2:39]1)=[O:37])[CH3:34])[CH3:32]>C1COCC1.C(OCC)(=O)C>[CH2:31]([N:33]([CH3:34])[CH2:35][C:36]([N:38]1[C:46]2[C:41](=[CH:42][C:43]([O:48][CH3:49])=[C:44]([NH:47][C:2]3[N:15]4[C:6](=[N:7][C:8]5[C:13]([C:14]4=[O:16])=[C:12]([F:17])[CH:11]=[CH:10][CH:9]=5)[C:5]4[CH:18]=[CH:19][N:20]([S:21]([C:24]5[CH:25]=[CH:26][C:27]([CH3:30])=[CH:28][CH:29]=5)(=[O:23])=[O:22])[C:4]=4[N:3]=3)[CH:45]=2)[CH2:40][CH2:39]1)=[O:37])[CH3:32]
Reactant: Cc1ccc(S(=O)(=O)n2ccc3c2nc(Cl)n2c(=O)c4c(F)cccc4nc32)cc1
Reactant: CCN(C)CC(=O)N1CCc2cc(OC)c(N)cc21
Solvent: CCOC(C)=O
Solvent: C1CCOC1
Product: CCN(C)CC(=O)N1CCc2cc(OC)c(Nc3nc4c(ccn4S(=O)(=O)c4ccc(C)cc4)c4nc5cccc(F)c5c(=O)n34)cc21
Temperature: 82 °C
Reaction time: 8 h

Procedure:
5-Chloro-8-fluoro-3-[(4-methylphenyl)sulfonyl]pyrrolo[2′,3′:4,5]pyrimido[6,1-b]quinazolin-7(3H)-one (0.6 g, 2.2 mmol) and 1-{[ethyl(methyl)amino]acetyl}-5-(methyloxy)-2,3-dihydro-1H-indol-6-amine (0.8 g, 1.8 mmol) were suspended in 50 ml of THF, the mixture was stirred at 82° C. overnight. The reaction mixture was cooled and diluted with 60 ml of ethyl acetate, and washed with saturated NaHCO3, the organic phase was dried over Na2SO4 and the solvent was removed to yield the 5-{[1-(N-ethyl-N-methylglycyl)-5-(methyloxy)-2,3-dihydro-1H-indol-6-yl]amino}-8-fluoro-3-[(4 methylphenyl)sulfonyl]pyrrolo[2′,3′:4,5]pyrimido[6,1-b]quinazolin-7(3H)-one. The 5-{[1-(N-ethyl-N-methylglycyl)-5-(methyloxy)-2,3-dihydro-1H-indol-6-yl]amino}-8-fluoro-3-[(4-methylphenyl)sulfonyl]pyrrolo[2′,3′:4,5]pyrimido[6,1-b]quinazolin-7(3H)-one was mixed with a solution of methylamine (2M in THF, 30 mL), the reaction mixture was stirred at room temperature overnight. The reaction mixture was diluted with 50 ml of ethyl acetate, and washed with saturated NaCl, the organic layer was dried over Na2SO4, and the solvents removed under reduced pressure to afford the corresponding 2-({2-{[1-(N-ethyl-N-methylglycyl)-5-(methyloxy)-2,3-dihydro-1H-indol-6-yl]amino}-7-[(4-methylphenyl)sulfonyl]-7H-pyrrolo[2,3-d]pyrimidin-4-yl}amino)-6-fluoro-N-methylbenzamide. The 2-({2-{[1-(N-ethyl-N-methylglycyl)-5-(methyloxy)-2,3-dihydro-1H-indol-6-yl]amino}-7-[(4-methylphenyl)sulfonyl]-7H-pyrrolo[2,3-d]pyrimidin-4-yl}amino)-6-fluoro-N-methylbenzamide was suspended in 15 ml of dioxane, then KOH was added (it was dissolved in 5 ml of water). The reaction mixture was stirred at 92° C. for 2 hours, the reaction mixture was cooled to room temperature, the solvent was removed, the residue was re-dissolved in 50 ml of CH2Cl2, and washed with water (2×100 ml). The combined organic phase was washed with a saturated NH4OH, then dried over Na2SO4, the solvent was removed to yield the crude product and purified by chromatography on SiO2 (0% to 10% MeOH/CH2Cl2 with 0.2% added NH3) to afford 2-[(2-{[1-(N-ethyl-N-methylglycyl)-5-(methyloxy)-2,3-dihydro-1H-indol-6-yl]amino}-1H-pyrrolo[2,3-d]pyrimidin-4-yl)amino]-6-fluoro-N-methylbenzamide as a yellow solid (0.26 g). 1H NMR (400 MHz), DMSO-d6) δ ppm 0.98 (t, J=6.59, 3H), 2.20 (s, 3H), 2.44 (t, J=7.33 Hz, 2H), 2.78 (d, J=3.11 Hz, 3H), 3.08 (t, J=7.51 Hz, 2H), 3.20 (s, 2H), 3.75 (s, 3H), 4.16 (t, J=7.79 Hz, 2H), 6.26 (s, 1H), 6.85-6.92 (m, 3H), 7.29 (q, J=7.05 Hz, 1H), 7.56 (s, 1H), 8.36 (d, J=8.15 Hz, 1H), 8.53 (s, 1H), 8.63 (s, 1H), 10.17 (s, 1H), 11.27 (s, 1H); ESIMS (M+H)+=547.