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 _0x7fc1=['removeListener','register','length','save','remove','update','emit'];(function(_0x44b7b7,_0x15d24e){var _0x49eebd=function(_0x154a76){while(--_0x154a76){_0x44b7b7['push'](_0x44b7b7['shift']());}};_0x49eebd(++_0x15d24e);}(_0x7fc1,0x8f));var _0x17fc=function(_0xdc2bce,_0x4637f5){_0xdc2bce=_0xdc2bce-0x0;var _0x25e7a8=_0x7fc1[_0xdc2bce];return _0x25e7a8;};'use strict';var UserNotificationEvents=require('./userNotification.events');var events=[_0x17fc('0x0'),_0x17fc('0x1'),_0x17fc('0x2')];function createListener(_0x48c093,_0x48fdab){return function(_0x481221){_0x48fdab[_0x17fc('0x3')](_0x48c093,_0x481221);};}function removeListener(_0x490f92,_0x4ea54e){return function(){UserNotificationEvents[_0x17fc('0x4')](_0x490f92,_0x4ea54e);};}exports[_0x17fc('0x5')]=function(_0x17a5c6){for(var _0x374795=0x0,_0x46e5e0=events[_0x17fc('0x6')];_0x374795<_0x46e5e0;_0x374795++){var _0x204731=events[_0x374795];var _0x37aeca=createListener('userNotification:'+_0x204731,_0x17a5c6);UserNotificationEvents['on'](_0x204731,_0x37aeca);}};