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 _0xb2ce=['removeListener','length','dashboardItem:','save','remove'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xb2ce,0x1b6));var _0xeb2c=function(_0xfb790d,_0x1793fe){_0xfb790d=_0xfb790d-0x0;var _0x23a1b9=_0xb2ce[_0xfb790d];return _0x23a1b9;};'use strict';var DashboardItemEvents=require('./dashboardItem.events');var events=[_0xeb2c('0x0'),_0xeb2c('0x1'),'update'];function createListener(_0x17bc64,_0x270e3f){return function(_0x30c148){_0x270e3f['emit'](_0x17bc64,_0x30c148);};}function removeListener(_0x672cf8,_0x1b0ed5){return function(){DashboardItemEvents[_0xeb2c('0x2')](_0x672cf8,_0x1b0ed5);};}exports['register']=function(_0x40bd15){for(var _0x4baa40=0x0,_0x89a4c7=events[_0xeb2c('0x3')];_0x4baa40<_0x89a4c7;_0x4baa40++){var _0x490dbf=events[_0x4baa40];var _0x5e9561=createListener(_0xeb2c('0x4')+_0x490dbf,_0x40bd15);DashboardItemEvents['on'](_0x490dbf,_0x5e9561);}};