2014-01-17 12:53:17 -05:00
|
|
|
config = require '../server_config'
|
|
|
|
sendwithusAPI = require 'sendwithus'
|
|
|
|
swuAPIKey = config.mail.sendwithusAPIKey
|
2014-02-05 12:39:14 -05:00
|
|
|
queues = require './commons/queue'
|
2014-01-27 14:14:44 -05:00
|
|
|
|
|
|
|
module.exports.setupRoutes = (app) ->
|
|
|
|
return
|
|
|
|
|
2014-01-17 12:53:17 -05:00
|
|
|
|
2014-03-11 22:17:58 -04:00
|
|
|
debug = not config.isProduction
|
|
|
|
module.exports.api = new sendwithusAPI swuAPIKey, debug
|
2014-04-08 22:08:33 -04:00
|
|
|
if config.unittest
|
|
|
|
module.exports.api.send = ->
|
2014-01-17 12:53:17 -05:00
|
|
|
module.exports.templates =
|
2014-03-08 21:49:09 -05:00
|
|
|
welcome_email: 'utnGaBHuSU4Hmsi7qrAypU'
|
2014-03-10 16:20:00 -04:00
|
|
|
ladder_update_email: 'JzaZxf39A4cKMxpPZUfWy4'
|