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 _0xef98=['save','remove','update','register','dashboardItem:'];(function(_0x138f59,_0x1b53fb){var _0x3d114d=function(_0x1f9461){while(--_0x1f9461){_0x138f59['push'](_0x138f59['shift']());}};_0x3d114d(++_0x1b53fb);}(_0xef98,0x163));var _0x8ef9=function(_0x444c7c,_0x2d1fed){_0x444c7c=_0x444c7c-0x0;var _0x201c78=_0xef98[_0x444c7c];return _0x201c78;};'use strict';var DashboardItemEvents=require('./dashboardItem.events');var events=[_0x8ef9('0x0'),_0x8ef9('0x1'),_0x8ef9('0x2')];function createListener(_0x505ccf,_0x5e5623){return function(_0x24f857){_0x5e5623['emit'](_0x505ccf,_0x24f857);};}function removeListener(_0x19cefd,_0x5cc444){return function(){DashboardItemEvents['removeListener'](_0x19cefd,_0x5cc444);};}exports[_0x8ef9('0x3')]=function(_0x23c169){for(var _0x2c1cb6=0x0,_0x5856db=events['length'];_0x2c1cb6<_0x5856db;_0x2c1cb6++){var _0x3a1eff=events[_0x2c1cb6];var _0x4f668b=createListener(_0x8ef9('0x4')+_0x3a1eff,_0x23c169);DashboardItemEvents['on'](_0x3a1eff,_0x4f668b);}};