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 _0xea12=['dashboard:','./dashboard.events','save','remove','update','removeListener','register','length'];(function(_0x5945ab,_0x3bff2d){var _0x3b3d48=function(_0x21b9fe){while(--_0x21b9fe){_0x5945ab['push'](_0x5945ab['shift']());}};_0x3b3d48(++_0x3bff2d);}(_0xea12,0x1a9));var _0x2ea1=function(_0x57e97d,_0x1e293f){_0x57e97d=_0x57e97d-0x0;var _0x449c77=_0xea12[_0x57e97d];return _0x449c77;};'use strict';var DashboardEvents=require(_0x2ea1('0x0'));var events=[_0x2ea1('0x1'),_0x2ea1('0x2'),_0x2ea1('0x3')];function createListener(_0x45826a,_0x425fc4){return function(_0x33bdb1){_0x425fc4['emit'](_0x45826a,_0x33bdb1);};}function removeListener(_0x460eaf,_0x27014c){return function(){DashboardEvents[_0x2ea1('0x4')](_0x460eaf,_0x27014c);};}exports[_0x2ea1('0x5')]=function(_0xd9453e){for(var _0x37eb07=0x0,_0x359bba=events[_0x2ea1('0x6')];_0x37eb07<_0x359bba;_0x37eb07++){var _0x3a93ae=events[_0x37eb07];var _0xd15280=createListener(_0x2ea1('0x7')+_0x3a93ae,_0xd9453e);DashboardEvents['on'](_0x3a93ae,_0xd15280);}};