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 _0xef77=['register','length','dashboardItem:','./dashboardItem.events','update','emit','removeListener'];(function(_0x1392c4,_0x5a51c6){var _0x179f77=function(_0x14ecba){while(--_0x14ecba){_0x1392c4['push'](_0x1392c4['shift']());}};_0x179f77(++_0x5a51c6);}(_0xef77,0x161));var _0x7ef7=function(_0x4c8f9c,_0x4f2f6a){_0x4c8f9c=_0x4c8f9c-0x0;var _0x157e26=_0xef77[_0x4c8f9c];return _0x157e26;};'use strict';var DashboardItemEvents=require(_0x7ef7('0x0'));var events=['save','remove',_0x7ef7('0x1')];function createListener(_0x3c2ee4,_0x58671d){return function(_0x1d9c92){_0x58671d[_0x7ef7('0x2')](_0x3c2ee4,_0x1d9c92);};}function removeListener(_0xb9a2d2,_0x1066ef){return function(){DashboardItemEvents[_0x7ef7('0x3')](_0xb9a2d2,_0x1066ef);};}exports[_0x7ef7('0x4')]=function(_0x220587){for(var _0x33a1fb=0x0,_0x29356b=events[_0x7ef7('0x5')];_0x33a1fb<_0x29356b;_0x33a1fb++){var _0x59f157=events[_0x33a1fb];var _0x389fc6=createListener(_0x7ef7('0x6')+_0x59f157,_0x220587);DashboardItemEvents['on'](_0x59f157,_0x389fc6);}};