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 _0x1a81=['removeListener','register','length','./plugin.events','save','remove','update','emit'];(function(_0x247d01,_0x1851fb){var _0xf18e8=function(_0x35d923){while(--_0x35d923){_0x247d01['push'](_0x247d01['shift']());}};_0xf18e8(++_0x1851fb);}(_0x1a81,0x19b));var _0x11a8=function(_0x19c5a1,_0x50a58c){_0x19c5a1=_0x19c5a1-0x0;var _0xed6251=_0x1a81[_0x19c5a1];return _0xed6251;};'use strict';var PluginEvents=require(_0x11a8('0x0'));var events=[_0x11a8('0x1'),_0x11a8('0x2'),_0x11a8('0x3')];function createListener(_0x411e27,_0x6a258d){return function(_0xe9c276){_0x6a258d[_0x11a8('0x4')](_0x411e27,_0xe9c276);};}function removeListener(_0x41fb8d,_0x337fab){return function(){PluginEvents[_0x11a8('0x5')](_0x41fb8d,_0x337fab);};}exports[_0x11a8('0x6')]=function(_0x241217){for(var _0x107c5c=0x0,_0x444939=events[_0x11a8('0x7')];_0x107c5c<_0x444939;_0x107c5c++){var _0x4e1cdf=events[_0x107c5c];var _0x142aa8=createListener('plugin:'+_0x4e1cdf,_0x241217);PluginEvents['on'](_0x4e1cdf,_0x142aa8);}};