@@ -47,7 +47,12 @@ module.exports = {
47
47
AUTH0_CLIENT_ID : process . env . AUTH0_CLIENT_ID ,
48
48
AUTH0_CLIENT_SECRET : process . env . AUTH0_CLIENT_SECRET ,
49
49
AUTH0_PROXY_SERVER_URL : process . env . AUTH0_PROXY_SERVER_URL ,
50
-
50
+ // Slack configuration.
51
+ SLACK : {
52
+ URL : process . env . SLACK_URL || 'https://slack.com/api/chat.postMessage' ,
53
+ BOT_TOKEN : process . env . SLACK_BOT_TOKEN ,
54
+ NOTIFY : process . env . SLACK_NOTIFY === 'true' ,
55
+ } ,
51
56
KAFKA_CONSUMER_RULESETS : {
52
57
// key is Kafka topic name, value is array of ruleset which have key as
53
58
// handler function name defined in src/processors/index.js
@@ -115,13 +120,16 @@ module.exports = {
115
120
// },
116
121
// },
117
122
// ],
118
- // */ // issue - https://github.com/topcoder-platform/community-app/issues/4108
123
+ // */ // issue - https://github.com/topcoder-platform/community-app/issues/4108
119
124
'admin.notification.broadcast' : [ {
120
- handleBulkNotification : { }
121
- }
122
- ]
123
- //'notifications.community.challenge.created': ['handleChallengeCreated'],
124
- //'notifications.community.challenge.phasewarning': ['handleChallengePhaseWarning'],
125
+ handleBulkNotification : { } ,
126
+ } ,
127
+ ] ,
128
+ 'notification.action.create' : [ {
129
+ handleUniversalNotification : { } ,
130
+ } ] ,
131
+ // 'notifications.community.challenge.created': ['handleChallengeCreated'],
132
+ // 'notifications.community.challenge.phasewarning': ['handleChallengePhaseWarning'],
125
133
} ,
126
134
127
135
// email notification service related variables
0 commit comments