 sqs = new aws.SQS(config.sqs)
 
 app.post '/twiml', (res, req) ->
-  if twilio_client.validateExpressRequest req, config.twilio.authToken
+  if twilio.validateExpressRequest req, config.twilio.authToken
     # resp = new twilio.TwimlResponse()
     # resp.say 'Hello, Twilio.'
 

config.twilio.accountSid = nconf.get 'TWILIO_ACCOUNT_SID'
config.twilio.authToken = nconf.get 'TWILIO_AUTH_TOKEN'

twilio = new twilio_client(config.twilio.accountSid, config.twilio.authToken)

# Set up AWS
config.sqs = {}
config.sqs.apiVersion = nconf.get 'AWS_API_VERSION'

express = require 'express'
http = require 'http'
path = require 'path'
twilio = require 'twilio'
nconf = require 'nconf'
aws = require 'aws-sdk'

