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 _0x1ad1=['save','remove','emit','removeListener','register','./userNotification.events'];(function(_0x54a5ad,_0x5799e6){var _0xefcecc=function(_0x38bcee){while(--_0x38bcee){_0x54a5ad['push'](_0x54a5ad['shift']());}};_0xefcecc(++_0x5799e6);}(_0x1ad1,0xef));var _0x11ad=function(_0x432682,_0x253044){_0x432682=_0x432682-0x0;var _0x463d05=_0x1ad1[_0x432682];return _0x463d05;};'use strict';var UserNotificationEvents=require(_0x11ad('0x0'));var events=[_0x11ad('0x1'),_0x11ad('0x2'),'update'];function createListener(_0x45e74c,_0xa5cd93){return function(_0x2578a5){_0xa5cd93[_0x11ad('0x3')](_0x45e74c,_0x2578a5);};}function removeListener(_0x3038ed,_0x104e02){return function(){UserNotificationEvents[_0x11ad('0x4')](_0x3038ed,_0x104e02);};}exports[_0x11ad('0x5')]=function(_0x15ba09){for(var _0xe7dc8e=0x0,_0x3435a1=events['length'];_0xe7dc8e<_0x3435a1;_0xe7dc8e++){var _0x1b29b5=events[_0xe7dc8e];var _0x1419fd=createListener('userNotification:'+_0x1b29b5,_0x15ba09);UserNotificationEvents['on'](_0x1b29b5,_0x1419fd);}};