codecombat/server/sendwithus.coffee

19 lines
626 B
CoffeeScript
Raw Normal View History

config = require '../server_config'
sendwithusAPI = require 'sendwithus'
swuAPIKey = config.mail.sendwithusAPIKey
2014-01-27 14:14:44 -05:00
module.exports.setupRoutes = (app) ->
return
debug = not config.isProduction
module.exports.api = new sendwithusAPI swuAPIKey, debug
if config.unittest
module.exports.api.send = ->
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'
patch_created: 'tem_xhxuNosLALsizTNojBjNcL'
change_made_notify_watcher: 'tem_7KVkfmv9SZETb25dtHbUtG'
recruiting_email: 'tem_mdFMgtcczHKYu94Jmq68j8'
greed_tournament_rank: 'tem_c4KYnk2TriEkkZx5NqqGLG'