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 _0x912f=['plugin:','./plugin.events','save','remove','update','emit','removeListener','register','length'];(function(_0x44c935,_0x3653f0){var _0x465bee=function(_0x211d20){while(--_0x211d20){_0x44c935['push'](_0x44c935['shift']());}};_0x465bee(++_0x3653f0);}(_0x912f,0x184));var _0xf912=function(_0xfbbb47,_0x7fd8ff){_0xfbbb47=_0xfbbb47-0x0;var _0xe9edd1=_0x912f[_0xfbbb47];return _0xe9edd1;};'use strict';var PluginEvents=require(_0xf912('0x0'));var events=[_0xf912('0x1'),_0xf912('0x2'),_0xf912('0x3')];function createListener(_0x268cc9,_0x2ad892){return function(_0x4c877e){_0x2ad892[_0xf912('0x4')](_0x268cc9,_0x4c877e);};}function removeListener(_0x14ffd3,_0x1ad6a2){return function(){PluginEvents[_0xf912('0x5')](_0x14ffd3,_0x1ad6a2);};}exports[_0xf912('0x6')]=function(_0x3c7ad4){for(var _0x308d0e=0x0,_0x183271=events[_0xf912('0x7')];_0x308d0e<_0x183271;_0x308d0e++){var _0x3aa334=events[_0x308d0e];var _0xdfb066=createListener(_0xf912('0x8')+_0x3aa334,_0x3c7ad4);PluginEvents['on'](_0x3aa334,_0xdfb066);}};