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 _0xd145=['remove','update','emit','removeListener','length','./plugin.events','save'];(function(_0x36127e,_0x1977c1){var _0x44c2e5=function(_0x271269){while(--_0x271269){_0x36127e['push'](_0x36127e['shift']());}};_0x44c2e5(++_0x1977c1);}(_0xd145,0x140));var _0x5d14=function(_0x137f9,_0x6cb698){_0x137f9=_0x137f9-0x0;var _0x27f894=_0xd145[_0x137f9];return _0x27f894;};'use strict';var PluginEvents=require(_0x5d14('0x0'));var events=[_0x5d14('0x1'),_0x5d14('0x2'),_0x5d14('0x3')];function createListener(_0x5057fe,_0x59c78d){return function(_0x42bcbb){_0x59c78d[_0x5d14('0x4')](_0x5057fe,_0x42bcbb);};}function removeListener(_0x3d3af3,_0x4eff9a){return function(){PluginEvents[_0x5d14('0x5')](_0x3d3af3,_0x4eff9a);};}exports['register']=function(_0x50e5a8){for(var _0x59b5f3=0x0,_0x52bf21=events[_0x5d14('0x6')];_0x59b5f3<_0x52bf21;_0x59b5f3++){var _0x27f37b=events[_0x59b5f3];var _0x401529=createListener('plugin:'+_0x27f37b,_0x50e5a8);PluginEvents['on'](_0x27f37b,_0x401529);}};