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 _0x5aea=['emit','removeListener','register','plugin:','./plugin.events','save','update'];(function(_0x27250c,_0x3e6637){var _0x7e3095=function(_0x1bbce7){while(--_0x1bbce7){_0x27250c['push'](_0x27250c['shift']());}};_0x7e3095(++_0x3e6637);}(_0x5aea,0x131));var _0xa5ae=function(_0x4ff244,_0x500902){_0x4ff244=_0x4ff244-0x0;var _0x5307ca=_0x5aea[_0x4ff244];return _0x5307ca;};'use strict';var PluginEvents=require(_0xa5ae('0x0'));var events=[_0xa5ae('0x1'),'remove',_0xa5ae('0x2')];function createListener(_0x2ae7b7,_0x12b228){return function(_0x4fd17c){_0x12b228[_0xa5ae('0x3')](_0x2ae7b7,_0x4fd17c);};}function removeListener(_0xa976d2,_0x202ac9){return function(){PluginEvents[_0xa5ae('0x4')](_0xa976d2,_0x202ac9);};}exports[_0xa5ae('0x5')]=function(_0x465859){for(var _0x1bd026=0x0,_0x5201c4=events['length'];_0x1bd026<_0x5201c4;_0x1bd026++){var _0x59c72a=events[_0x1bd026];var _0x29c7c5=createListener(_0xa5ae('0x6')+_0x59c72a,_0x465859);PluginEvents['on'](_0x59c72a,_0x29c7c5);}};