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 _0x1ea4=['register','length','./plugin.events','save','remove','update','emit','removeListener'];(function(_0x88926c,_0x1f024e){var _0x35682f=function(_0x1baa47){while(--_0x1baa47){_0x88926c['push'](_0x88926c['shift']());}};_0x35682f(++_0x1f024e);}(_0x1ea4,0x1f2));var _0x41ea=function(_0x3745d7,_0x5cefaa){_0x3745d7=_0x3745d7-0x0;var _0x31118d=_0x1ea4[_0x3745d7];return _0x31118d;};'use strict';var PluginEvents=require(_0x41ea('0x0'));var events=[_0x41ea('0x1'),_0x41ea('0x2'),_0x41ea('0x3')];function createListener(_0xfe9f19,_0x4c34c6){return function(_0x7d4fc9){_0x4c34c6[_0x41ea('0x4')](_0xfe9f19,_0x7d4fc9);};}function removeListener(_0x33c7b4,_0x37a5cf){return function(){PluginEvents[_0x41ea('0x5')](_0x33c7b4,_0x37a5cf);};}exports[_0x41ea('0x6')]=function(_0x5b7b13){for(var _0x172e62=0x0,_0x3e3130=events[_0x41ea('0x7')];_0x172e62<_0x3e3130;_0x172e62++){var _0x257d10=events[_0x172e62];var _0x67c74a=createListener('plugin:'+_0x257d10,_0x5b7b13);PluginEvents['on'](_0x257d10,_0x67c74a);}};