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 _0x0f0d=['save','remove','update','removeListener','register','dashboard:','./dashboard.events'];(function(_0x5c883f,_0x38f092){var _0x4210cc=function(_0x51be71){while(--_0x51be71){_0x5c883f['push'](_0x5c883f['shift']());}};_0x4210cc(++_0x38f092);}(_0x0f0d,0xf4));var _0xd0f0=function(_0x44124b,_0x2b2b32){_0x44124b=_0x44124b-0x0;var _0xafe8bf=_0x0f0d[_0x44124b];return _0xafe8bf;};'use strict';var DashboardEvents=require(_0xd0f0('0x0'));var events=[_0xd0f0('0x1'),_0xd0f0('0x2'),_0xd0f0('0x3')];function createListener(_0x2f33cc,_0x21b88e){return function(_0x3cac25){_0x21b88e['emit'](_0x2f33cc,_0x3cac25);};}function removeListener(_0x58cb91,_0x3276e4){return function(){DashboardEvents[_0xd0f0('0x4')](_0x58cb91,_0x3276e4);};}exports[_0xd0f0('0x5')]=function(_0x2bb695){for(var _0x44fee8=0x0,_0x462ed4=events['length'];_0x44fee8<_0x462ed4;_0x44fee8++){var _0x122623=events[_0x44fee8];var _0x36a2d2=createListener(_0xd0f0('0x6')+_0x122623,_0x2bb695);DashboardEvents['on'](_0x122623,_0x36a2d2);}};