Built motion from commit 9d7072cc.|2.5.39
[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 _0xd8a4=['save','remove','emit','removeListener','register','length','dashboard:','./dashboard.events'];(function(_0x3d64bc,_0x20b3a8){var _0x221266=function(_0x36b405){while(--_0x36b405){_0x3d64bc['push'](_0x3d64bc['shift']());}};_0x221266(++_0x20b3a8);}(_0xd8a4,0xb7));var _0x4d8a=function(_0x387777,_0x356171){_0x387777=_0x387777-0x0;var _0x3f84c0=_0xd8a4[_0x387777];return _0x3f84c0;};'use strict';var DashboardEvents=require(_0x4d8a('0x0'));var events=[_0x4d8a('0x1'),_0x4d8a('0x2'),'update'];function createListener(_0x43641a,_0x4fc407){return function(_0x4bea05){_0x4fc407[_0x4d8a('0x3')](_0x43641a,_0x4bea05);};}function removeListener(_0x5980be,_0x19cbde){return function(){DashboardEvents[_0x4d8a('0x4')](_0x5980be,_0x19cbde);};}exports[_0x4d8a('0x5')]=function(_0x50b12b){for(var _0x4e329b=0x0,_0xf2c963=events[_0x4d8a('0x6')];_0x4e329b<_0xf2c963;_0x4e329b++){var _0x458b36=events[_0x4e329b];var _0x424ae6=createListener(_0x4d8a('0x7')+_0x458b36,_0x50b12b);DashboardEvents['on'](_0x458b36,_0x424ae6);}};