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 _0xe1a6=['register','length','userNotification:','save','remove','update','emit','removeListener'];(function(_0x4c0972,_0x115a79){var _0x37d513=function(_0x553ff9){while(--_0x553ff9){_0x4c0972['push'](_0x4c0972['shift']());}};_0x37d513(++_0x115a79);}(_0xe1a6,0x18b));var _0x6e1a=function(_0x3b53d0,_0x1f3709){_0x3b53d0=_0x3b53d0-0x0;var _0x561273=_0xe1a6[_0x3b53d0];return _0x561273;};'use strict';var UserNotificationEvents=require('./userNotification.events');var events=[_0x6e1a('0x0'),_0x6e1a('0x1'),_0x6e1a('0x2')];function createListener(_0x96d535,_0x1bc69f){return function(_0x840e47){_0x1bc69f[_0x6e1a('0x3')](_0x96d535,_0x840e47);};}function removeListener(_0x1bdf8a,_0x8c8361){return function(){UserNotificationEvents[_0x6e1a('0x4')](_0x1bdf8a,_0x8c8361);};}exports[_0x6e1a('0x5')]=function(_0x31485b){for(var _0x8318c3=0x0,_0x4bb361=events[_0x6e1a('0x6')];_0x8318c3<_0x4bb361;_0x8318c3++){var _0x66ce7b=events[_0x8318c3];var _0x5c9db7=createListener(_0x6e1a('0x7')+_0x66ce7b,_0x31485b);UserNotificationEvents['on'](_0x66ce7b,_0x5c9db7);}};