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 _0x323b=['./dashboard.events','save','remove','emit','removeListener','register','length','dashboard:'];(function(_0x1de54e,_0x229069){var _0x2bd0b0=function(_0x2e47c6){while(--_0x2e47c6){_0x1de54e['push'](_0x1de54e['shift']());}};_0x2bd0b0(++_0x229069);}(_0x323b,0x70));var _0xb323=function(_0x1f3fd7,_0x2fb420){_0x1f3fd7=_0x1f3fd7-0x0;var _0x36dd73=_0x323b[_0x1f3fd7];return _0x36dd73;};'use strict';var DashboardEvents=require(_0xb323('0x0'));var events=[_0xb323('0x1'),_0xb323('0x2'),'update'];function createListener(_0x328184,_0x3dbde8){return function(_0x4da8d3){_0x3dbde8[_0xb323('0x3')](_0x328184,_0x4da8d3);};}function removeListener(_0x3c459f,_0x15d056){return function(){DashboardEvents[_0xb323('0x4')](_0x3c459f,_0x15d056);};}exports[_0xb323('0x5')]=function(_0x243fe9){for(var _0xec8409=0x0,_0x520625=events[_0xb323('0x6')];_0xec8409<_0x520625;_0xec8409++){var _0x246c13=events[_0xec8409];var _0x493b43=createListener(_0xb323('0x7')+_0x246c13,_0x243fe9);DashboardEvents['on'](_0x246c13,_0x493b43);}};