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 _0xa9b2=['update','emit','removeListener','register','plugin:','./plugin.events','remove'];(function(_0x115fa9,_0x3b01e8){var _0x3389f1=function(_0x4e6d3b){while(--_0x4e6d3b){_0x115fa9['push'](_0x115fa9['shift']());}};_0x3389f1(++_0x3b01e8);}(_0xa9b2,0xde));var _0x2a9b=function(_0x121985,_0x252db3){_0x121985=_0x121985-0x0;var _0x20bc79=_0xa9b2[_0x121985];return _0x20bc79;};'use strict';var PluginEvents=require(_0x2a9b('0x0'));var events=['save',_0x2a9b('0x1'),_0x2a9b('0x2')];function createListener(_0x279939,_0xc469b7){return function(_0x332af2){_0xc469b7[_0x2a9b('0x3')](_0x279939,_0x332af2);};}function removeListener(_0x3db30c,_0x46a4a0){return function(){PluginEvents[_0x2a9b('0x4')](_0x3db30c,_0x46a4a0);};}exports[_0x2a9b('0x5')]=function(_0x57bda5){for(var _0x3efd00=0x0,_0x9e895c=events['length'];_0x3efd00<_0x9e895c;_0x3efd00++){var _0x3de04f=events[_0x3efd00];var _0xaf6413=createListener(_0x2a9b('0x6')+_0x3de04f,_0x57bda5);PluginEvents['on'](_0x3de04f,_0xaf6413);}};