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 _0xfc66=['./dashboardItem.events','save','remove','update','removeListener','register','length'];(function(_0x334841,_0x2bbc4c){var _0x5beb4b=function(_0x4bea72){while(--_0x4bea72){_0x334841['push'](_0x334841['shift']());}};_0x5beb4b(++_0x2bbc4c);}(_0xfc66,0x7e));var _0x6fc6=function(_0x3029e5,_0x1b3e84){_0x3029e5=_0x3029e5-0x0;var _0x2a693a=_0xfc66[_0x3029e5];return _0x2a693a;};'use strict';var DashboardItemEvents=require(_0x6fc6('0x0'));var events=[_0x6fc6('0x1'),_0x6fc6('0x2'),_0x6fc6('0x3')];function createListener(_0x20d468,_0x85dacd){return function(_0x51cd34){_0x85dacd['emit'](_0x20d468,_0x51cd34);};}function removeListener(_0x279eff,_0x5920c3){return function(){DashboardItemEvents[_0x6fc6('0x4')](_0x279eff,_0x5920c3);};}exports[_0x6fc6('0x5')]=function(_0x57de42){for(var _0x326853=0x0,_0x12c844=events[_0x6fc6('0x6')];_0x326853<_0x12c844;_0x326853++){var _0x40faa4=events[_0x326853];var _0xa9757e=createListener('dashboardItem:'+_0x40faa4,_0x57de42);DashboardItemEvents['on'](_0x40faa4,_0xa9757e);}};