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 _0xdfcf=['register','length','./plugin.events','save','remove','update','emit','removeListener'];(function(_0x344afe,_0x38c267){var _0x4c42d1=function(_0x36c2d8){while(--_0x36c2d8){_0x344afe['push'](_0x344afe['shift']());}};_0x4c42d1(++_0x38c267);}(_0xdfcf,0xe2));var _0xfdfc=function(_0xaa1b3e,_0x47d976){_0xaa1b3e=_0xaa1b3e-0x0;var _0x454d7d=_0xdfcf[_0xaa1b3e];return _0x454d7d;};'use strict';var PluginEvents=require(_0xfdfc('0x0'));var events=[_0xfdfc('0x1'),_0xfdfc('0x2'),_0xfdfc('0x3')];function createListener(_0x2b613d,_0x1a6b27){return function(_0x4761e1){_0x1a6b27[_0xfdfc('0x4')](_0x2b613d,_0x4761e1);};}function removeListener(_0x4fde61,_0x1a0679){return function(){PluginEvents[_0xfdfc('0x5')](_0x4fde61,_0x1a0679);};}exports[_0xfdfc('0x6')]=function(_0x1573a7){for(var _0x3f06a7=0x0,_0x918ad1=events[_0xfdfc('0x7')];_0x3f06a7<_0x918ad1;_0x3f06a7++){var _0x82f107=events[_0x3f06a7];var _0x366b05=createListener('plugin:'+_0x82f107,_0x1573a7);PluginEvents['on'](_0x82f107,_0x366b05);}};