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 _0x5d2a=['removeListener','length','dashboardItem:','save','emit'];(function(_0x22ba79,_0x1fd59f){var _0x3c64a7=function(_0x30b023){while(--_0x30b023){_0x22ba79['push'](_0x22ba79['shift']());}};_0x3c64a7(++_0x1fd59f);}(_0x5d2a,0x139));var _0xa5d2=function(_0x178078,_0xc8ab70){_0x178078=_0x178078-0x0;var _0x53cf38=_0x5d2a[_0x178078];return _0x53cf38;};'use strict';var DashboardItemEvents=require('./dashboardItem.events');var events=[_0xa5d2('0x0'),'remove','update'];function createListener(_0x362e9b,_0x159a89){return function(_0xb4fd84){_0x159a89[_0xa5d2('0x1')](_0x362e9b,_0xb4fd84);};}function removeListener(_0x178c5f,_0x11c611){return function(){DashboardItemEvents[_0xa5d2('0x2')](_0x178c5f,_0x11c611);};}exports['register']=function(_0x373397){for(var _0x43b112=0x0,_0xdafecb=events[_0xa5d2('0x3')];_0x43b112<_0xdafecb;_0x43b112++){var _0x378732=events[_0x43b112];var _0x4d9ded=createListener(_0xa5d2('0x4')+_0x378732,_0x373397);DashboardItemEvents['on'](_0x378732,_0x4d9ded);}};