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 _0x5f7b=['./plugin.events','save','update','emit','register'];(function(_0x1152c3,_0x1a4629){var _0x4b8014=function(_0x3d7270){while(--_0x3d7270){_0x1152c3['push'](_0x1152c3['shift']());}};_0x4b8014(++_0x1a4629);}(_0x5f7b,0x14a));var _0xb5f7=function(_0x263a74,_0xc31414){_0x263a74=_0x263a74-0x0;var _0x2aa86c=_0x5f7b[_0x263a74];return _0x2aa86c;};'use strict';var PluginEvents=require(_0xb5f7('0x0'));var events=[_0xb5f7('0x1'),'remove',_0xb5f7('0x2')];function createListener(_0x11b992,_0x2d8697){return function(_0x14e145){_0x2d8697[_0xb5f7('0x3')](_0x11b992,_0x14e145);};}function removeListener(_0x42baf5,_0x29396c){return function(){PluginEvents['removeListener'](_0x42baf5,_0x29396c);};}exports[_0xb5f7('0x4')]=function(_0x50c8b6){for(var _0x44689a=0x0,_0x725cc9=events['length'];_0x44689a<_0x725cc9;_0x44689a++){var _0x3087a5=events[_0x44689a];var _0x2d49ba=createListener('plugin:'+_0x3087a5,_0x50c8b6);PluginEvents['on'](_0x3087a5,_0x2d49ba);}};