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 _0x269e=['remove','update','removeListener','register','length','dashboardItem:','./dashboardItem.events','save'];(function(_0xaca348,_0x4d3993){var _0x560057=function(_0x41e145){while(--_0x41e145){_0xaca348['push'](_0xaca348['shift']());}};_0x560057(++_0x4d3993);}(_0x269e,0x14e));var _0xe269=function(_0x4b52da,_0x39bf67){_0x4b52da=_0x4b52da-0x0;var _0x261576=_0x269e[_0x4b52da];return _0x261576;};'use strict';var DashboardItemEvents=require(_0xe269('0x0'));var events=[_0xe269('0x1'),_0xe269('0x2'),_0xe269('0x3')];function createListener(_0x5e6ed5,_0x1941be){return function(_0x4483c9){_0x1941be['emit'](_0x5e6ed5,_0x4483c9);};}function removeListener(_0x12f268,_0x2af8b4){return function(){DashboardItemEvents[_0xe269('0x4')](_0x12f268,_0x2af8b4);};}exports[_0xe269('0x5')]=function(_0x57dc05){for(var _0x25a447=0x0,_0x55c11a=events[_0xe269('0x6')];_0x25a447<_0x55c11a;_0x25a447++){var _0x39a7c0=events[_0x25a447];var _0x4c85c1=createListener(_0xe269('0x7')+_0x39a7c0,_0x57dc05);DashboardItemEvents['on'](_0x39a7c0,_0x4c85c1);}};