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 _0xf9bc=['removeListener','register','plugin:','save','remove'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xf9bc,0xc1));var _0xcf9b=function(_0x2189a6,_0x1ffe22){_0x2189a6=_0x2189a6-0x0;var _0x4c1174=_0xf9bc[_0x2189a6];return _0x4c1174;};'use strict';var PluginEvents=require('./plugin.events');var events=[_0xcf9b('0x0'),_0xcf9b('0x1'),'update'];function createListener(_0x15b34e,_0x40daeb){return function(_0xc733a8){_0x40daeb['emit'](_0x15b34e,_0xc733a8);};}function removeListener(_0x47e49c,_0x2dcb4e){return function(){PluginEvents[_0xcf9b('0x2')](_0x47e49c,_0x2dcb4e);};}exports[_0xcf9b('0x3')]=function(_0x5beae7){for(var _0x342cce=0x0,_0x553259=events['length'];_0x342cce<_0x553259;_0x342cce++){var _0x24eb73=events[_0x342cce];var _0x326661=createListener(_0xcf9b('0x4')+_0x24eb73,_0x5beae7);PluginEvents['on'](_0x24eb73,_0x326661);}};