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 _0xedd0=['removeListener','register','plugin:','./plugin.events','save','remove','emit'];(function(_0x1f1837,_0x4b304e){var _0x25ab57=function(_0x4dec8c){while(--_0x4dec8c){_0x1f1837['push'](_0x1f1837['shift']());}};_0x25ab57(++_0x4b304e);}(_0xedd0,0x6c));var _0x0edd=function(_0x2404b3,_0x1b9a06){_0x2404b3=_0x2404b3-0x0;var _0x3a07e6=_0xedd0[_0x2404b3];return _0x3a07e6;};'use strict';var PluginEvents=require(_0x0edd('0x0'));var events=[_0x0edd('0x1'),_0x0edd('0x2'),'update'];function createListener(_0x3ce903,_0x122d32){return function(_0x984448){_0x122d32[_0x0edd('0x3')](_0x3ce903,_0x984448);};}function removeListener(_0x374420,_0x1ba858){return function(){PluginEvents[_0x0edd('0x4')](_0x374420,_0x1ba858);};}exports[_0x0edd('0x5')]=function(_0x163bfa){for(var _0x3e9218=0x0,_0x3edcb9=events['length'];_0x3e9218<_0x3edcb9;_0x3e9218++){var _0x253349=events[_0x3e9218];var _0x58424b=createListener(_0x0edd('0x6')+_0x253349,_0x163bfa);PluginEvents['on'](_0x253349,_0x58424b);}};