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 _0xd17e=['dashboardItem:','./dashboardItem.events','save','remove','update','emit','removeListener','length'];(function(_0x463f44,_0xc071ff){var _0x304163=function(_0x1cede6){while(--_0x1cede6){_0x463f44['push'](_0x463f44['shift']());}};_0x304163(++_0xc071ff);}(_0xd17e,0x81));var _0xed17=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xd17e[_0x3dd15e];return _0x231fd0;};'use strict';var DashboardItemEvents=require(_0xed17('0x0'));var events=[_0xed17('0x1'),_0xed17('0x2'),_0xed17('0x3')];function createListener(_0x1e2f3c,_0x592876){return function(_0x34755d){_0x592876[_0xed17('0x4')](_0x1e2f3c,_0x34755d);};}function removeListener(_0xee92e1,_0x4eaa1a){return function(){DashboardItemEvents[_0xed17('0x5')](_0xee92e1,_0x4eaa1a);};}exports['register']=function(_0x35ba09){for(var _0x1c6613=0x0,_0x3c0556=events[_0xed17('0x6')];_0x1c6613<_0x3c0556;_0x1c6613++){var _0x32ea88=events[_0x1c6613];var _0x5c51d5=createListener(_0xed17('0x7')+_0x32ea88,_0x35ba09);DashboardItemEvents['on'](_0x32ea88,_0x5c51d5);}};