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 _0x9d73=['update','removeListener','register','length','save','remove'];(function(_0x5448a9,_0x4764da){var _0x1924af=function(_0x34f9bf){while(--_0x34f9bf){_0x5448a9['push'](_0x5448a9['shift']());}};_0x1924af(++_0x4764da);}(_0x9d73,0x1e4));var _0x39d7=function(_0x49bf20,_0x102d66){_0x49bf20=_0x49bf20-0x0;var _0x59697e=_0x9d73[_0x49bf20];return _0x59697e;};'use strict';var DashboardItemEvents=require('./dashboardItem.events');var events=[_0x39d7('0x0'),_0x39d7('0x1'),_0x39d7('0x2')];function createListener(_0x69a16d,_0x298fef){return function(_0x3ba892){_0x298fef['emit'](_0x69a16d,_0x3ba892);};}function removeListener(_0x3d000a,_0x36b1e9){return function(){DashboardItemEvents[_0x39d7('0x3')](_0x3d000a,_0x36b1e9);};}exports[_0x39d7('0x4')]=function(_0x100c89){for(var _0x3209eb=0x0,_0x17b0dd=events[_0x39d7('0x5')];_0x3209eb<_0x17b0dd;_0x3209eb++){var _0x135690=events[_0x3209eb];var _0x2cc90c=createListener('dashboardItem:'+_0x135690,_0x100c89);DashboardItemEvents['on'](_0x135690,_0x2cc90c);}};