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 _0x56f3=['removeListener','register','length','./plugin.events','save','remove','update','emit'];(function(_0x15feb5,_0x3610ad){var _0x7a46f0=function(_0x28f1a5){while(--_0x28f1a5){_0x15feb5['push'](_0x15feb5['shift']());}};_0x7a46f0(++_0x3610ad);}(_0x56f3,0x1eb));var _0x356f=function(_0x801480,_0x118504){_0x801480=_0x801480-0x0;var _0x4cf024=_0x56f3[_0x801480];return _0x4cf024;};'use strict';var PluginEvents=require(_0x356f('0x0'));var events=[_0x356f('0x1'),_0x356f('0x2'),_0x356f('0x3')];function createListener(_0x943243,_0x2bfa29){return function(_0x354530){_0x2bfa29[_0x356f('0x4')](_0x943243,_0x354530);};}function removeListener(_0x1f0458,_0x154b9f){return function(){PluginEvents[_0x356f('0x5')](_0x1f0458,_0x154b9f);};}exports[_0x356f('0x6')]=function(_0x304e57){for(var _0x29b3d9=0x0,_0x20ecc6=events[_0x356f('0x7')];_0x29b3d9<_0x20ecc6;_0x29b3d9++){var _0x115fa2=events[_0x29b3d9];var _0x34c648=createListener('plugin:'+_0x115fa2,_0x304e57);PluginEvents['on'](_0x115fa2,_0x34c648);}};