-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.js
More file actions
30 lines (25 loc) · 791 Bytes
/
constants.js
File metadata and controls
30 lines (25 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const config = require('./config')
const NOTIFICATIONS_TOPIC = 'notifications.action.create'
const EVENT_ORIGINATOR = 'topcoder-timeline-api'
const EVENT_MIME_TYPE = 'application/json'
const NotificationTypes = {
EVENT_APPROVED: 'timeline.notifications.event-approve',
EVENT_REJECTED: 'timeline.notifications.event-rejected',
}
const NotificationSettings = {
[NotificationTypes.EVENT_APPROVED]: {
sendgridTemplateId: config.EMAIL.SENDGRID_TEMPLATES.EVENT_APPROVED,
cc: []
},
[NotificationTypes.EVENT_REJECTED]: {
sendgridTemplateId: config.EMAIL.SENDGRID_TEMPLATES.EVENT_REJECTED,
cc: []
},
}
module.exports = {
NOTIFICATIONS_TOPIC,
EVENT_ORIGINATOR,
EVENT_MIME_TYPE,
NotificationSettings,
NotificationTypes
}