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 _0x1d62=['register','length','./dashboardItem.events','save','emit','removeListener'];(function(_0x277b5f,_0x106d4f){var _0x42775c=function(_0x5c5c96){while(--_0x5c5c96){_0x277b5f['push'](_0x277b5f['shift']());}};_0x42775c(++_0x106d4f);}(_0x1d62,0x9e));var _0x21d6=function(_0x2d7fc0,_0x28d4a6){_0x2d7fc0=_0x2d7fc0-0x0;var _0x34bdce=_0x1d62[_0x2d7fc0];return _0x34bdce;};'use strict';var DashboardItemEvents=require(_0x21d6('0x0'));var events=[_0x21d6('0x1'),'remove','update'];function createListener(_0x3a5832,_0x3de453){return function(_0x2332c7){_0x3de453[_0x21d6('0x2')](_0x3a5832,_0x2332c7);};}function removeListener(_0x3bd9cf,_0xeeb330){return function(){DashboardItemEvents[_0x21d6('0x3')](_0x3bd9cf,_0xeeb330);};}exports[_0x21d6('0x4')]=function(_0x269253){for(var _0x25361e=0x0,_0x29d9cb=events[_0x21d6('0x5')];_0x25361e<_0x29d9cb;_0x25361e++){var _0x3de3b7=events[_0x25361e];var _0x185ec1=createListener('dashboardItem:'+_0x3de3b7,_0x269253);DashboardItemEvents['on'](_0x3de3b7,_0x185ec1);}};