Compounds of formula (I), wherein R 1, R 2, R 3, R 5, R 6, R 7, A 1, A 2, A 3, A 4, X 1, and X 2 have any of the values defined in the specification and pharmaceutically acceptable salts thereof, which are useful as agents in the treatment of diseases and conditions, including inflammatory diseases, cancer, and AIDS are provided. Pharmaceutical compositions comprising of compounds of formula (I) are also provided.