Built motion from commit 4ca75f1b.|2.6.28
[motion2.git] / server / api / dashboard / dashboard.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xf591=['./dashboard.events','save','remove','emit','removeListener','register','length','dashboard:'];(function(_0x3660c1,_0x375bce){var _0x1151e3=function(_0x10b9fd){while(--_0x10b9fd){_0x3660c1['push'](_0x3660c1['shift']());}};_0x1151e3(++_0x375bce);}(_0xf591,0x110));var _0x1f59=function(_0x41e801,_0x2a2060){_0x41e801=_0x41e801-0x0;var _0xa3916f=_0xf591[_0x41e801];return _0xa3916f;};'use strict';var DashboardEvents=require(_0x1f59('0x0'));var events=[_0x1f59('0x1'),_0x1f59('0x2'),'update'];function createListener(_0x2c0226,_0xb027b1){return function(_0x224862){_0xb027b1[_0x1f59('0x3')](_0x2c0226,_0x224862);};}function removeListener(_0x33e277,_0x612394){return function(){DashboardEvents[_0x1f59('0x4')](_0x33e277,_0x612394);};}exports[_0x1f59('0x5')]=function(_0x22e996){for(var _0x3300dd=0x0,_0x1254ce=events[_0x1f59('0x6')];_0x3300dd<_0x1254ce;_0x3300dd++){var _0x5b061d=events[_0x3300dd];var _0x9a7d31=createListener(_0x1f59('0x7')+_0x5b061d,_0x22e996);DashboardEvents['on'](_0x5b061d,_0x9a7d31);}};