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 _0x005b=['dashboardItem:','./dashboardItem.events','removeListener','length'];(function(_0x37fe27,_0x23c34a){var _0xbf0261=function(_0x2c126b){while(--_0x2c126b){_0x37fe27['push'](_0x37fe27['shift']());}};_0xbf0261(++_0x23c34a);}(_0x005b,0x9d));var _0xb005=function(_0x132e64,_0x49b24d){_0x132e64=_0x132e64-0x0;var _0x481b42=_0x005b[_0x132e64];return _0x481b42;};'use strict';var DashboardItemEvents=require(_0xb005('0x0'));var events=['save','remove','update'];function createListener(_0x3cf005,_0x241b1e){return function(_0x20b908){_0x241b1e['emit'](_0x3cf005,_0x20b908);};}function removeListener(_0x411eb9,_0x58a5aa){return function(){DashboardItemEvents[_0xb005('0x1')](_0x411eb9,_0x58a5aa);};}exports['register']=function(_0x186866){for(var _0x5b50f2=0x0,_0x1ecd61=events[_0xb005('0x2')];_0x5b50f2<_0x1ecd61;_0x5b50f2++){var _0x542e00=events[_0x5b50f2];var _0x20b0fc=createListener(_0xb005('0x3')+_0x542e00,_0x186866);DashboardItemEvents['on'](_0x542e00,_0x20b0fc);}};