Compounds of the formula I:
or pharmaceutically acceptable salts thereof,
wherein R
1
, R
2
, R
3
and R
4
are as defined herein. Also disclosed are methods of making the compounds and using the compounds for treatment of diseases associated with calcium release-activated calcium channels (CRAC).