2014-01-17 09:53:17 -08:00
|
|
|
config = require '../server_config'
|
|
|
|
sendwithusAPI = require 'sendwithus'
|
|
|
|
swuAPIKey = config.mail.sendwithusAPIKey
|
2014-01-27 11:14:44 -08:00
|
|
|
|
|
|
|
module.exports.setupRoutes = (app) ->
|
|
|
|
return
|
|
|
|
|
2014-03-11 19:17:58 -07:00
|
|
|
debug = not config.isProduction
|
|
|
|
module.exports.api = new sendwithusAPI swuAPIKey, debug
|
2014-04-08 19:08:33 -07:00
|
|
|
if config.unittest
|
|
|
|
module.exports.api.send = ->
|
2014-01-17 09:53:17 -08:00
|
|
|
module.exports.templates =
|
2014-03-08 18:49:09 -08:00
|
|
|
welcome_email: 'utnGaBHuSU4Hmsi7qrAypU'
|
2014-03-10 13:20:00 -07:00
|
|
|
ladder_update_email: 'JzaZxf39A4cKMxpPZUfWy4'
|
2014-04-17 17:09:01 -07:00
|
|
|
patch_created: 'tem_xhxuNosLALsizTNojBjNcL'
|
2014-04-17 17:30:55 -07:00
|
|
|
change_made_notify_watcher: 'tem_7KVkfmv9SZETb25dtHbUtG'
|
2014-06-27 00:36:03 -07:00
|
|
|
recruiting_email: 'tem_mdFMgtcczHKYu94Jmq68j8'
|
2014-06-12 15:25:42 -07:00
|
|
|
greed_tournament_rank: 'tem_c4KYnk2TriEkkZx5NqqGLG'
|