Disclosed herein are indole derivatives of the formula (I)
wherein each of the substitutents is given the definition as set forth in the specification and claims. Also disclosed are pharmaceutical compositions containing the indole derivatives and use of the derivatives for the treatment of pain.