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 _0xbadb=['register','./userNotification.events','save','remove','emit'];(function(_0x455a03,_0x1996a0){var _0x50cdf1=function(_0x3b2b99){while(--_0x3b2b99){_0x455a03['push'](_0x455a03['shift']());}};_0x50cdf1(++_0x1996a0);}(_0xbadb,0x1f0));var _0xbbad=function(_0x5e6233,_0x4feccf){_0x5e6233=_0x5e6233-0x0;var _0x34a29f=_0xbadb[_0x5e6233];return _0x34a29f;};'use strict';var UserNotificationEvents=require(_0xbbad('0x0'));var events=[_0xbbad('0x1'),_0xbbad('0x2'),'update'];function createListener(_0x1b3a2f,_0x3853cb){return function(_0xcaa8bc){_0x3853cb[_0xbbad('0x3')](_0x1b3a2f,_0xcaa8bc);};}function removeListener(_0x363282,_0x137a81){return function(){UserNotificationEvents['removeListener'](_0x363282,_0x137a81);};}exports[_0xbbad('0x4')]=function(_0x32d7e0){for(var _0x42ce8a=0x0,_0x17e4bc=events['length'];_0x42ce8a<_0x17e4bc;_0x42ce8a++){var _0x67b694=events[_0x42ce8a];var _0x5921b9=createListener('userNotification:'+_0x67b694,_0x32d7e0);UserNotificationEvents['on'](_0x67b694,_0x5921b9);}};