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 _0xd067=['save','update','emit','register','length','./notification.events'];(function(_0x50d679,_0x224cf6){var _0x113f73=function(_0x358afc){while(--_0x358afc){_0x50d679['push'](_0x50d679['shift']());}};_0x113f73(++_0x224cf6);}(_0xd067,0xd1));var _0x7d06=function(_0x12d074,_0x1c861d){_0x12d074=_0x12d074-0x0;var _0xc81d68=_0xd067[_0x12d074];return _0xc81d68;};'use strict';var NotificationEvents=require(_0x7d06('0x0'));var events=[_0x7d06('0x1'),'remove',_0x7d06('0x2')];function createListener(_0x375b71,_0x255e17){return function(_0x42d450){_0x255e17[_0x7d06('0x3')](_0x375b71,_0x42d450);};}function removeListener(_0x5e9476,_0x57abdc){return function(){NotificationEvents['removeListener'](_0x5e9476,_0x57abdc);};}exports[_0x7d06('0x4')]=function(_0xe2c293){for(var _0x5094bc=0x0,_0x2359e4=events[_0x7d06('0x5')];_0x5094bc<_0x2359e4;_0x5094bc++){var _0x2423ae=events[_0x5094bc];var _0x4b9c1b=createListener('notification:'+_0x2423ae,_0xe2c293);NotificationEvents['on'](_0x2423ae,_0x4b9c1b);}};