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 _0x21ec=['./plugin.events','save','remove','update','emit','removeListener','register','length'];(function(_0x3b3c0e,_0x53abd6){var _0x1b96c0=function(_0x2857c4){while(--_0x2857c4){_0x3b3c0e['push'](_0x3b3c0e['shift']());}};_0x1b96c0(++_0x53abd6);}(_0x21ec,0x170));var _0xc21e=function(_0x342700,_0x569f75){_0x342700=_0x342700-0x0;var _0x53406f=_0x21ec[_0x342700];return _0x53406f;};'use strict';var PluginEvents=require(_0xc21e('0x0'));var events=[_0xc21e('0x1'),_0xc21e('0x2'),_0xc21e('0x3')];function createListener(_0x16ff35,_0x1c3b1d){return function(_0x4e28f9){_0x1c3b1d[_0xc21e('0x4')](_0x16ff35,_0x4e28f9);};}function removeListener(_0x3364d5,_0x12c6d8){return function(){PluginEvents[_0xc21e('0x5')](_0x3364d5,_0x12c6d8);};}exports[_0xc21e('0x6')]=function(_0x4a06cb){for(var _0x58287c=0x0,_0x3a6646=events[_0xc21e('0x7')];_0x58287c<_0x3a6646;_0x58287c++){var _0x24f458=events[_0x58287c];var _0x267307=createListener('plugin:'+_0x24f458,_0x4a06cb);PluginEvents['on'](_0x24f458,_0x267307);}};