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 _0xcc6d=['remove','update','register','length','plugin:','./plugin.events','save'];(function(_0x2793cc,_0x1973c4){var _0xc0505f=function(_0x1b330c){while(--_0x1b330c){_0x2793cc['push'](_0x2793cc['shift']());}};_0xc0505f(++_0x1973c4);}(_0xcc6d,0x1a9));var _0xdcc6=function(_0x5b3273,_0x281564){_0x5b3273=_0x5b3273-0x0;var _0x1b4032=_0xcc6d[_0x5b3273];return _0x1b4032;};'use strict';var PluginEvents=require(_0xdcc6('0x0'));var events=[_0xdcc6('0x1'),_0xdcc6('0x2'),_0xdcc6('0x3')];function createListener(_0x41f682,_0x4a6254){return function(_0x12c9da){_0x4a6254['emit'](_0x41f682,_0x12c9da);};}function removeListener(_0x51da16,_0x1354e5){return function(){PluginEvents['removeListener'](_0x51da16,_0x1354e5);};}exports[_0xdcc6('0x4')]=function(_0x562ed5){for(var _0x5d546a=0x0,_0x47ec37=events[_0xdcc6('0x5')];_0x5d546a<_0x47ec37;_0x5d546a++){var _0x47cc5a=events[_0x5d546a];var _0x393524=createListener(_0xdcc6('0x6')+_0x47cc5a,_0x562ed5);PluginEvents['on'](_0x47cc5a,_0x393524);}};