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 _0x2fae=['remove','emit','removeListener','register','dashboardItem:','save'];(function(_0x26e022,_0x326acd){var _0xd92f54=function(_0x2993ac){while(--_0x2993ac){_0x26e022['push'](_0x26e022['shift']());}};_0xd92f54(++_0x326acd);}(_0x2fae,0x1c1));var _0xe2fa=function(_0x5b5841,_0x5f33e8){_0x5b5841=_0x5b5841-0x0;var _0x25f559=_0x2fae[_0x5b5841];return _0x25f559;};'use strict';var DashboardItemEvents=require('./dashboardItem.events');var events=[_0xe2fa('0x0'),_0xe2fa('0x1'),'update'];function createListener(_0x19effd,_0x396302){return function(_0x447680){_0x396302[_0xe2fa('0x2')](_0x19effd,_0x447680);};}function removeListener(_0x53d2d8,_0xc65639){return function(){DashboardItemEvents[_0xe2fa('0x3')](_0x53d2d8,_0xc65639);};}exports[_0xe2fa('0x4')]=function(_0x452a37){for(var _0x44b0d3=0x0,_0x50448=events['length'];_0x44b0d3<_0x50448;_0x44b0d3++){var _0x5ac4b9=events[_0x44b0d3];var _0x28e996=createListener(_0xe2fa('0x5')+_0x5ac4b9,_0x452a37);DashboardItemEvents['on'](_0x5ac4b9,_0x28e996);}};