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 _0xeb5a=['save','remove','update','removeListener','register','length','dashboard:','./dashboard.events'];(function(_0x4b8f51,_0x4561f1){var _0x2710b8=function(_0x5530a7){while(--_0x5530a7){_0x4b8f51['push'](_0x4b8f51['shift']());}};_0x2710b8(++_0x4561f1);}(_0xeb5a,0x1a7));var _0xaeb5=function(_0x293b0f,_0x2923e8){_0x293b0f=_0x293b0f-0x0;var _0x41ee8b=_0xeb5a[_0x293b0f];return _0x41ee8b;};'use strict';var DashboardEvents=require(_0xaeb5('0x0'));var events=[_0xaeb5('0x1'),_0xaeb5('0x2'),_0xaeb5('0x3')];function createListener(_0x50e8d3,_0x47846e){return function(_0x87148f){_0x47846e['emit'](_0x50e8d3,_0x87148f);};}function removeListener(_0x162151,_0x3af82a){return function(){DashboardEvents[_0xaeb5('0x4')](_0x162151,_0x3af82a);};}exports[_0xaeb5('0x5')]=function(_0x52a8b6){for(var _0xc32324=0x0,_0x24d69f=events[_0xaeb5('0x6')];_0xc32324<_0x24d69f;_0xc32324++){var _0x2c932b=events[_0xc32324];var _0x3ba8eb=createListener(_0xaeb5('0x7')+_0x2c932b,_0x52a8b6);DashboardEvents['on'](_0x2c932b,_0x3ba8eb);}};