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 _0xd31e=['update','emit','removeListener','register','length','dashboardItem:','./dashboardItem.events','save'];(function(_0x1532b3,_0x119091){var _0x496061=function(_0x4c3fa3){while(--_0x4c3fa3){_0x1532b3['push'](_0x1532b3['shift']());}};_0x496061(++_0x119091);}(_0xd31e,0x9e));var _0xed31=function(_0x1c999a,_0xf8663a){_0x1c999a=_0x1c999a-0x0;var _0x7b159=_0xd31e[_0x1c999a];return _0x7b159;};'use strict';var DashboardItemEvents=require(_0xed31('0x0'));var events=[_0xed31('0x1'),'remove',_0xed31('0x2')];function createListener(_0x4e35cc,_0x10c2bd){return function(_0x503d67){_0x10c2bd[_0xed31('0x3')](_0x4e35cc,_0x503d67);};}function removeListener(_0x1e6c82,_0x4576a8){return function(){DashboardItemEvents[_0xed31('0x4')](_0x1e6c82,_0x4576a8);};}exports[_0xed31('0x5')]=function(_0x46ee0b){for(var _0x31ebbe=0x0,_0x309747=events[_0xed31('0x6')];_0x31ebbe<_0x309747;_0x31ebbe++){var _0x16c213=events[_0x31ebbe];var _0xac5d9a=createListener(_0xed31('0x7')+_0x16c213,_0x46ee0b);DashboardItemEvents['on'](_0x16c213,_0xac5d9a);}};