   isString
 } = require 'lodash-node'
 timeconstants = require 'timeconstants'
+util = require 'util'
 
 r = require './r'
 secret = require './secret'

      res.status 500
      res.send {
        success: false
        err: "Server Error: #{ err }"
        userMobileNumber
      }
  .catch (err) ->
    res.status 500
    res.send JSON.stringify {
      success: false
      err: "Server Error: #{ err }"
    }




# This doesn't really validate e-mails but is a basic sanity check
EMAIL_REGEX = /.+\@.+\..+/
CUSTOM_MESSAGE_REGEX = new RegExp CUSTOM_MESSAGE_CODE_ESCAPE, 'g'

app = express()

