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 _0x31b0=['./dashboardItem.events','save','register','length','dashboardItem:'];(function(_0x51e446,_0x20348e){var _0x329ef8=function(_0xfccf77){while(--_0xfccf77){_0x51e446['push'](_0x51e446['shift']());}};_0x329ef8(++_0x20348e);}(_0x31b0,0x1ae));var _0x031b=function(_0x54a70a,_0x18f66){_0x54a70a=_0x54a70a-0x0;var _0x26239e=_0x31b0[_0x54a70a];return _0x26239e;};'use strict';var DashboardItemEvents=require(_0x031b('0x0'));var events=[_0x031b('0x1'),'remove','update'];function createListener(_0x5923cd,_0x45981a){return function(_0x1272cd){_0x45981a['emit'](_0x5923cd,_0x1272cd);};}function removeListener(_0x28ad24,_0x5df514){return function(){DashboardItemEvents['removeListener'](_0x28ad24,_0x5df514);};}exports[_0x031b('0x2')]=function(_0x4a5c48){for(var _0x9a4521=0x0,_0x4fa238=events[_0x031b('0x3')];_0x9a4521<_0x4fa238;_0x9a4521++){var _0x31d488=events[_0x9a4521];var _0x575879=createListener(_0x031b('0x4')+_0x31d488,_0x4a5c48);DashboardItemEvents['on'](_0x31d488,_0x575879);}};