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 _0xb240=['remove','update','emit','removeListener','register','plugin:','./plugin.events','save'];(function(_0x2a0b95,_0x78f0a6){var _0x1aaec2=function(_0x488a69){while(--_0x488a69){_0x2a0b95['push'](_0x2a0b95['shift']());}};_0x1aaec2(++_0x78f0a6);}(_0xb240,0x7e));var _0x0b24=function(_0x224cc9,_0xfd556f){_0x224cc9=_0x224cc9-0x0;var _0xb436a2=_0xb240[_0x224cc9];return _0xb436a2;};'use strict';var PluginEvents=require(_0x0b24('0x0'));var events=[_0x0b24('0x1'),_0x0b24('0x2'),_0x0b24('0x3')];function createListener(_0x28ed39,_0x2c87e6){return function(_0x219e2d){_0x2c87e6[_0x0b24('0x4')](_0x28ed39,_0x219e2d);};}function removeListener(_0x30083a,_0x567c96){return function(){PluginEvents[_0x0b24('0x5')](_0x30083a,_0x567c96);};}exports[_0x0b24('0x6')]=function(_0x21c0aa){for(var _0x1cbc06=0x0,_0x162a50=events['length'];_0x1cbc06<_0x162a50;_0x1cbc06++){var _0x238a19=events[_0x1cbc06];var _0x34be24=createListener(_0x0b24('0x7')+_0x238a19,_0x21c0aa);PluginEvents['on'](_0x238a19,_0x34be24);}};