@@ -47,7 +47,12 @@ module.exports = {
4747 AUTH0_CLIENT_ID : process . env . AUTH0_CLIENT_ID ,
4848 AUTH0_CLIENT_SECRET : process . env . AUTH0_CLIENT_SECRET ,
4949 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+ } ,
5156 KAFKA_CONSUMER_RULESETS : {
5257 // key is Kafka topic name, value is array of ruleset which have key as
5358 // handler function name defined in src/processors/index.js
@@ -115,13 +120,16 @@ module.exports = {
115120 // },
116121 // },
117122 // ],
118- // */ // issue - https://github.com/topcoder-platform/community-app/issues/4108
123+ // */ // issue - https://github.com/topcoder-platform/community-app/issues/4108
119124 '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'],
125133 } ,
126134
127135 // email notification service related variables
0 commit comments