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

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'

sqs = new aws.SQS(config.sqs)

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

