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 _0xd085=['register','length','dashboardItem:','save','remove','update','emit','removeListener'];(function(_0x39cfed,_0xac6797){var _0x7ee7f1=function(_0x471887){while(--_0x471887){_0x39cfed['push'](_0x39cfed['shift']());}};_0x7ee7f1(++_0xac6797);}(_0xd085,0x17b));var _0x5d08=function(_0x4bb2b9,_0x459c78){_0x4bb2b9=_0x4bb2b9-0x0;var _0x40e2a2=_0xd085[_0x4bb2b9];return _0x40e2a2;};'use strict';var DashboardItemEvents=require('./dashboardItem.events');var events=[_0x5d08('0x0'),_0x5d08('0x1'),_0x5d08('0x2')];function createListener(_0x245707,_0x51e00c){return function(_0x1c57e2){_0x51e00c[_0x5d08('0x3')](_0x245707,_0x1c57e2);};}function removeListener(_0xf3771d,_0x5d149b){return function(){DashboardItemEvents[_0x5d08('0x4')](_0xf3771d,_0x5d149b);};}exports[_0x5d08('0x5')]=function(_0x454304){for(var _0xc4ee58=0x0,_0x34ea50=events[_0x5d08('0x6')];_0xc4ee58<_0x34ea50;_0xc4ee58++){var _0x5002a3=events[_0xc4ee58];var _0x2350a6=createListener(_0x5d08('0x7')+_0x5002a3,_0x454304);DashboardItemEvents['on'](_0x5002a3,_0x2350a6);}};