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 _0x088c=['length','dashboardItem:','./dashboardItem.events','save','remove','update','emit','register'];(function(_0x41f8f5,_0x225bc7){var _0x50bb52=function(_0x50edbf){while(--_0x50edbf){_0x41f8f5['push'](_0x41f8f5['shift']());}};_0x50bb52(++_0x225bc7);}(_0x088c,0x122));var _0xc088=function(_0x2eb849,_0x358be7){_0x2eb849=_0x2eb849-0x0;var _0x3d1c26=_0x088c[_0x2eb849];return _0x3d1c26;};'use strict';var DashboardItemEvents=require(_0xc088('0x0'));var events=[_0xc088('0x1'),_0xc088('0x2'),_0xc088('0x3')];function createListener(_0x3b182f,_0x16a486){return function(_0xcb420){_0x16a486[_0xc088('0x4')](_0x3b182f,_0xcb420);};}function removeListener(_0x3796f9,_0x2a0a6b){return function(){DashboardItemEvents['removeListener'](_0x3796f9,_0x2a0a6b);};}exports[_0xc088('0x5')]=function(_0x2c1de0){for(var _0x2976eb=0x0,_0x3e48d1=events[_0xc088('0x6')];_0x2976eb<_0x3e48d1;_0x2976eb++){var _0x5e609c=events[_0x2976eb];var _0x346189=createListener(_0xc088('0x7')+_0x5e609c,_0x2c1de0);DashboardItemEvents['on'](_0x5e609c,_0x346189);}};