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 _0xca0c=['plugin:','./plugin.events','save','remove','update','emit','removeListener'];(function(_0x58981f,_0x29a796){var _0x381d75=function(_0x1f8208){while(--_0x1f8208){_0x58981f['push'](_0x58981f['shift']());}};_0x381d75(++_0x29a796);}(_0xca0c,0xd3));var _0xcca0=function(_0x2aec52,_0x59d962){_0x2aec52=_0x2aec52-0x0;var _0x3b8835=_0xca0c[_0x2aec52];return _0x3b8835;};'use strict';var PluginEvents=require(_0xcca0('0x0'));var events=[_0xcca0('0x1'),_0xcca0('0x2'),_0xcca0('0x3')];function createListener(_0x48b9e4,_0x17862e){return function(_0x38831c){_0x17862e[_0xcca0('0x4')](_0x48b9e4,_0x38831c);};}function removeListener(_0x2ed2dd,_0x1b2fbc){return function(){PluginEvents[_0xcca0('0x5')](_0x2ed2dd,_0x1b2fbc);};}exports['register']=function(_0x5259c2){for(var _0x4bb807=0x0,_0x1714ab=events['length'];_0x4bb807<_0x1714ab;_0x4bb807++){var _0x2e94be=events[_0x4bb807];var _0x1fe253=createListener(_0xcca0('0x6')+_0x2e94be,_0x5259c2);PluginEvents['on'](_0x2e94be,_0x1fe253);}};