mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-13 01:01:34 -05:00
0aac07cb37
This uses a new template for the version with the course code added, so that I don't have to sync up changes to the template with deploying the code to production, and so I can test it separately in staging beforehand.
34 lines
1.3 KiB
CoffeeScript
34 lines
1.3 KiB
CoffeeScript
config = require '../server_config'
|
|
sendwithusAPI = require 'sendwithus'
|
|
swuAPIKey = config.mail.sendwithusAPIKey
|
|
log = require 'winston'
|
|
|
|
module.exports.setupRoutes = (app) ->
|
|
return
|
|
|
|
debug = not config.isProduction
|
|
module.exports.api =
|
|
send: (context, cb) ->
|
|
log.debug('Tried to send email with context: ', JSON.stringify(context, null, '\t'))
|
|
setTimeout(cb, 10)
|
|
|
|
if swuAPIKey
|
|
module.exports.api = new sendwithusAPI swuAPIKey, debug
|
|
|
|
module.exports.templates =
|
|
parent_subscribe_email: 'tem_2APERafogvwKhmcnouigud'
|
|
share_progress_email: 'tem_VHE3ihhGmVa3727qds9zY8'
|
|
welcome_email: 'utnGaBHuSU4Hmsi7qrAypU'
|
|
ladder_update_email: 'JzaZxf39A4cKMxpPZUfWy4'
|
|
patch_created: 'tem_xhxuNosLALsizTNojBjNcL'
|
|
change_made_notify_watcher: 'tem_7KVkfmv9SZETb25dtHbUtG'
|
|
recruiting_email: 'tem_mdFMgtcczHKYu94Jmq68j8'
|
|
greed_tournament_rank: 'tem_c4KYnk2TriEkkZx5NqqGLG'
|
|
generic_email: 'tem_JhRnQ4pvTS4KdQjYoZdbei'
|
|
plain_text_email: 'tem_85UvKDCCNPXsFckERTig6Y'
|
|
next_steps_email: 'tem_RDHhTG5inXQi8pthyqWr5D'
|
|
course_invite_email: 'tem_f5K7BXX5vQ9a7kwYTACbJa'
|
|
teacher_free_trial: 'tem_R7d9Hpoba9SceQNiYSXBak'
|
|
teacher_free_trial_hoc: 'tem_4ZSY9wsA9Qwn4wBFmZgPdc'
|
|
teacher_request_demo: 'tem_cwG3HZjEyb6QE493hZuUra'
|
|
password_reset: 'tem_wbQUMRtLY9xhec8BSCykLA'
|