1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x8c79=['./userNotification.events','emit','length'];(function(_0x397bf9,_0x20817d){var _0x3463c9=function(_0x3be6fa){while(--_0x3be6fa){_0x397bf9['push'](_0x397bf9['shift']());}};_0x3463c9(++_0x20817d);}(_0x8c79,0xa8));var _0x98c7=function(_0x554af3,_0x570447){_0x554af3=_0x554af3-0x0;var _0x3670ef=_0x8c79[_0x554af3];return _0x3670ef;};'use strict';var UserNotificationEvents=require(_0x98c7('0x0'));var events=['save','remove','update'];function createListener(_0x14ca25,_0x55824b){return function(_0x255cd6){_0x55824b[_0x98c7('0x1')](_0x14ca25,_0x255cd6);};}function removeListener(_0x5ecf19,_0x456fb6){return function(){UserNotificationEvents['removeListener'](_0x5ecf19,_0x456fb6);};}exports['register']=function(_0x553d51){for(var _0x9e9609=0x0,_0x57b072=events[_0x98c7('0x2')];_0x9e9609<_0x57b072;_0x9e9609++){var _0x25dd4c=events[_0x9e9609];var _0x513208=createListener('userNotification:'+_0x25dd4c,_0x553d51);UserNotificationEvents['on'](_0x25dd4c,_0x513208);}};