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 _0xdec7=['update','emit','removeListener','length','./dashboardItem.events','save'];(function(_0x513aa5,_0x1fba79){var _0x1a1a7c=function(_0x240e3f){while(--_0x240e3f){_0x513aa5['push'](_0x513aa5['shift']());}};_0x1a1a7c(++_0x1fba79);}(_0xdec7,0x11e));var _0x7dec=function(_0x422107,_0x35fd41){_0x422107=_0x422107-0x0;var _0x3084be=_0xdec7[_0x422107];return _0x3084be;};'use strict';var DashboardItemEvents=require(_0x7dec('0x0'));var events=[_0x7dec('0x1'),'remove',_0x7dec('0x2')];function createListener(_0x5b45ef,_0x5a55f3){return function(_0x319e8b){_0x5a55f3[_0x7dec('0x3')](_0x5b45ef,_0x319e8b);};}function removeListener(_0x4e7cca,_0x1d71c3){return function(){DashboardItemEvents[_0x7dec('0x4')](_0x4e7cca,_0x1d71c3);};}exports['register']=function(_0x33ed7f){for(var _0x14c13b=0x0,_0x16dbe9=events[_0x7dec('0x5')];_0x14c13b<_0x16dbe9;_0x14c13b++){var _0x3a6ac2=events[_0x14c13b];var _0x5bbdab=createListener('dashboardItem:'+_0x3a6ac2,_0x33ed7f);DashboardItemEvents['on'](_0x3a6ac2,_0x5bbdab);}};