{"version":3,"sources":["jsdelivr-header.js","/npm/@runnerty/notificator-slack@1.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,IAAI,aAAe,OAAO,kBACtB,iBAAmB,QAAQ,iBAAiB,gBAEhD,MAAM,yBAAyB,aAC7B,WAAA,CAAY,GACV,MAAM,EACR,CAEA,IAAA,CAAK,GACH,IAAI,EAAQ,KACR,EAAK,IAAI,iBAAiB,EAAa,YACvC,EAAO,CACT,KAAM,EAAa,MACnB,QAAS,EAAa,QACtB,UAAW,EAAa,UACxB,SAAU,EAAa,SACvB,YAAa,CACX,CACE,KAAM,EAAa,QACnB,MAAO,EAAa,SAI1B,EAAG,KAAK,GAAM,WACZ,EAAM,KACR,GACF,EAIF,OAAO,QAAU","file":"/npm/@runnerty/notificator-slack@1.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@runnerty/notificator-slack@1.0.0/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nvar Notification = global.NotificationClass;\nvar IncomingWebhooks = require(\"@slack/client\").IncomingWebhook;\n\nclass slackNotificator extends Notification {\n  constructor(notification) {\n    super(notification);\n  }\n\n  send(notification) {\n    var _this = this;\n    var wh = new IncomingWebhooks(notification.webhookurl);\n    var data = {\n      text: notification.title,\n      channel: notification.channel,\n      iconEmoji: notification.bot_emoji,\n      username: notification.bot_name,\n      attachments: [\n        {\n          text: notification.message,\n          color: notification.color\n        }\n      ]\n    };\n    wh.send(data, function () {\n      _this.end();\n    });\n  }\n\n}\n\nmodule.exports = slackNotificator;"]}