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 _0x1f65=['save','remove','emit','removeListener','register','length','./dashboard.events'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x1f65,0x6f));var _0x51f6=function(_0x1aa7b1,_0xe9e31d){_0x1aa7b1=_0x1aa7b1-0x0;var _0x5d4ff4=_0x1f65[_0x1aa7b1];return _0x5d4ff4;};'use strict';var DashboardEvents=require(_0x51f6('0x0'));var events=[_0x51f6('0x1'),_0x51f6('0x2'),'update'];function createListener(_0x3af20c,_0x2ea7d1){return function(_0xf4aea2){_0x2ea7d1[_0x51f6('0x3')](_0x3af20c,_0xf4aea2);};}function removeListener(_0x3f00ba,_0x280225){return function(){DashboardEvents[_0x51f6('0x4')](_0x3f00ba,_0x280225);};}exports[_0x51f6('0x5')]=function(_0x1b1dc5){for(var _0x41ef4f=0x0,_0x10778d=events[_0x51f6('0x6')];_0x41ef4f<_0x10778d;_0x41ef4f++){var _0x1c5493=events[_0x41ef4f];var _0x577a87=createListener('dashboard:'+_0x1c5493,_0x1b1dc5);DashboardEvents['on'](_0x1c5493,_0x577a87);}};