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 _0x207a=['save','update','emit','removeListener','register','length','dashboardItem:','./dashboardItem.events'];(function(_0x4db6c0,_0x3ca76f){var _0x1f1034=function(_0xc37fcb){while(--_0xc37fcb){_0x4db6c0['push'](_0x4db6c0['shift']());}};_0x1f1034(++_0x3ca76f);}(_0x207a,0x1d7));var _0xa207=function(_0x2ea91e,_0x1fbfb9){_0x2ea91e=_0x2ea91e-0x0;var _0x49d2cd=_0x207a[_0x2ea91e];return _0x49d2cd;};'use strict';var DashboardItemEvents=require(_0xa207('0x0'));var events=[_0xa207('0x1'),'remove',_0xa207('0x2')];function createListener(_0x41316c,_0x54b93e){return function(_0x296b6c){_0x54b93e[_0xa207('0x3')](_0x41316c,_0x296b6c);};}function removeListener(_0x25e80f,_0x12433d){return function(){DashboardItemEvents[_0xa207('0x4')](_0x25e80f,_0x12433d);};}exports[_0xa207('0x5')]=function(_0x28c9d1){for(var _0x5f4d60=0x0,_0x2cad95=events[_0xa207('0x6')];_0x5f4d60<_0x2cad95;_0x5f4d60++){var _0x1ccebc=events[_0x5f4d60];var _0x2a0e11=createListener(_0xa207('0x7')+_0x1ccebc,_0x28c9d1);DashboardItemEvents['on'](_0x1ccebc,_0x2a0e11);}};