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 _0xd612=['dashboard:','./dashboard.events','save','remove','update','emit','register','length'];(function(_0x5b15b9,_0xf065d4){var _0x51856c=function(_0x154ecd){while(--_0x154ecd){_0x5b15b9['push'](_0x5b15b9['shift']());}};_0x51856c(++_0xf065d4);}(_0xd612,0x1b9));var _0x2d61=function(_0x5c804e,_0x583316){_0x5c804e=_0x5c804e-0x0;var _0x317514=_0xd612[_0x5c804e];return _0x317514;};'use strict';var DashboardEvents=require(_0x2d61('0x0'));var events=[_0x2d61('0x1'),_0x2d61('0x2'),_0x2d61('0x3')];function createListener(_0x31f7cb,_0x1ff239){return function(_0x3b8c02){_0x1ff239[_0x2d61('0x4')](_0x31f7cb,_0x3b8c02);};}function removeListener(_0xb19d76,_0xae37fc){return function(){DashboardEvents['removeListener'](_0xb19d76,_0xae37fc);};}exports[_0x2d61('0x5')]=function(_0x59cfc5){for(var _0x3d97ed=0x0,_0xfbb8ed=events[_0x2d61('0x6')];_0x3d97ed<_0xfbb8ed;_0x3d97ed++){var _0x250f3c=events[_0x3d97ed];var _0x57ca48=createListener(_0x2d61('0x7')+_0x250f3c,_0x59cfc5);DashboardEvents['on'](_0x250f3c,_0x57ca48);}};