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 _0x69b8=['update','emit','removeListener','length','./plugin.events','save'];(function(_0x2167b7,_0x4caaab){var _0x230d75=function(_0x328def){while(--_0x328def){_0x2167b7['push'](_0x2167b7['shift']());}};_0x230d75(++_0x4caaab);}(_0x69b8,0x16c));var _0x869b=function(_0x2e76f8,_0x449014){_0x2e76f8=_0x2e76f8-0x0;var _0x4b355e=_0x69b8[_0x2e76f8];return _0x4b355e;};'use strict';var PluginEvents=require(_0x869b('0x0'));var events=[_0x869b('0x1'),'remove',_0x869b('0x2')];function createListener(_0x2f71a6,_0x527fc8){return function(_0x3e0f9a){_0x527fc8[_0x869b('0x3')](_0x2f71a6,_0x3e0f9a);};}function removeListener(_0x46ded6,_0x5dfdaf){return function(){PluginEvents[_0x869b('0x4')](_0x46ded6,_0x5dfdaf);};}exports['register']=function(_0x3ee651){for(var _0x1168b2=0x0,_0x489145=events[_0x869b('0x5')];_0x1168b2<_0x489145;_0x1168b2++){var _0x5d39ea=events[_0x1168b2];var _0x3b2261=createListener('plugin:'+_0x5d39ea,_0x3ee651);PluginEvents['on'](_0x5d39ea,_0x3b2261);}};