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 _0x41e9=['register','length','./userNotification.events','save','remove','emit'];(function(_0xcf569a,_0x328a49){var _0x48731c=function(_0x4aa5e1){while(--_0x4aa5e1){_0xcf569a['push'](_0xcf569a['shift']());}};_0x48731c(++_0x328a49);}(_0x41e9,0x17c));var _0x941e=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0x41e9[_0x4a9fb1];return _0x348672;};'use strict';var UserNotificationEvents=require(_0x941e('0x0'));var events=[_0x941e('0x1'),_0x941e('0x2'),'update'];function createListener(_0x1486e2,_0x2c0bd6){return function(_0x49a86c){_0x2c0bd6[_0x941e('0x3')](_0x1486e2,_0x49a86c);};}function removeListener(_0x420c4a,_0x457e4a){return function(){UserNotificationEvents['removeListener'](_0x420c4a,_0x457e4a);};}exports[_0x941e('0x4')]=function(_0xc9eee){for(var _0x584a3b=0x0,_0x28f555=events[_0x941e('0x5')];_0x584a3b<_0x28f555;_0x584a3b++){var _0x16606c=events[_0x584a3b];var _0xafc00c=createListener('userNotification:'+_0x16606c,_0xc9eee);UserNotificationEvents['on'](_0x16606c,_0xafc00c);}};