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 _0x349f=['removeListener','register','userNotification:','./userNotification.events','save','remove','emit'];(function(_0x176ceb,_0x2a25ac){var _0x2502df=function(_0x150526){while(--_0x150526){_0x176ceb['push'](_0x176ceb['shift']());}};_0x2502df(++_0x2a25ac);}(_0x349f,0x145));var _0xf349=function(_0x3684fc,_0x52999f){_0x3684fc=_0x3684fc-0x0;var _0x3e0528=_0x349f[_0x3684fc];return _0x3e0528;};'use strict';var UserNotificationEvents=require(_0xf349('0x0'));var events=[_0xf349('0x1'),_0xf349('0x2'),'update'];function createListener(_0x5b618a,_0x26e587){return function(_0x500dd5){_0x26e587[_0xf349('0x3')](_0x5b618a,_0x500dd5);};}function removeListener(_0xe1c20,_0x155e86){return function(){UserNotificationEvents[_0xf349('0x4')](_0xe1c20,_0x155e86);};}exports[_0xf349('0x5')]=function(_0x5246d7){for(var _0x743ab5=0x0,_0xc15a2f=events['length'];_0x743ab5<_0xc15a2f;_0x743ab5++){var _0x3d754c=events[_0x743ab5];var _0x68bf0a=createListener(_0xf349('0x6')+_0x3d754c,_0x5246d7);UserNotificationEvents['on'](_0x3d754c,_0x68bf0a);}};