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 _0x4935=['save','remove','update','emit','removeListener','register','length','dashboardItem:','./dashboardItem.events'];(function(_0x447312,_0x4743ba){var _0x1243dc=function(_0x39eb9b){while(--_0x39eb9b){_0x447312['push'](_0x447312['shift']());}};_0x1243dc(++_0x4743ba);}(_0x4935,0x86));var _0x5493=function(_0xfc456e,_0x19e4ef){_0xfc456e=_0xfc456e-0x0;var _0x2b7008=_0x4935[_0xfc456e];return _0x2b7008;};'use strict';var DashboardItemEvents=require(_0x5493('0x0'));var events=[_0x5493('0x1'),_0x5493('0x2'),_0x5493('0x3')];function createListener(_0x20008f,_0x19cc29){return function(_0x1c9dd3){_0x19cc29[_0x5493('0x4')](_0x20008f,_0x1c9dd3);};}function removeListener(_0x400357,_0xf3971a){return function(){DashboardItemEvents[_0x5493('0x5')](_0x400357,_0xf3971a);};}exports[_0x5493('0x6')]=function(_0x11cdab){for(var _0x13b0fd=0x0,_0x34e9bf=events[_0x5493('0x7')];_0x13b0fd<_0x34e9bf;_0x13b0fd++){var _0x26f7c8=events[_0x13b0fd];var _0x4c7d3d=createListener(_0x5493('0x8')+_0x26f7c8,_0x11cdab);DashboardItemEvents['on'](_0x26f7c8,_0x4c7d3d);}};