Built motion from commit e02f907f.|2.6.14
[motion2.git] / server / api / dashboard / dashboard.rpc.js
index 0528f36..cf0504a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x38fb=['register','request','then','info','Dashboard,\x20%s,\x20%s','request\x20sent','debug','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','redis','defaults','localhost','./dashboard.socket'];(function(_0x14ad69,_0xf76368){var _0x218722=function(_0x210f59){while(--_0x210f59){_0x14ad69['push'](_0x14ad69['shift']());}};_0x218722(++_0xf76368);}(_0x38fb,0x1b0));var _0xb38f=function(_0x556927,_0x34b53f){_0x556927=_0x556927-0x0;var _0x5f1235=_0x38fb[_0x556927];return _0x5f1235;};'use strict';var _=require(_0xb38f('0x0'));var util=require(_0xb38f('0x1'));var moment=require(_0xb38f('0x2'));var BPromise=require(_0xb38f('0x3'));var rs=require(_0xb38f('0x4'));var fs=require('fs');var Redis=require(_0xb38f('0x5'));var db=require(_0xb38f('0x6'))['db'];var utils=require(_0xb38f('0x7'));var logger=require(_0xb38f('0x8'))(_0xb38f('0x9'));var config=require(_0xb38f('0xa'));var jayson=require(_0xb38f('0xb'));var client=jayson[_0xb38f('0xc')][_0xb38f('0xd')]({'port':0x232a});config[_0xb38f('0xe')]=_[_0xb38f('0xf')](config[_0xb38f('0xe')],{'host':_0xb38f('0x10'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config[_0xb38f('0xe')]));require(_0xb38f('0x11'))[_0xb38f('0x12')](socket);function respondWithRpcPromise(_0x5e037a,_0x3a5441,_0x1252b6){return new BPromise(function(_0xc17932,_0x331549){return client[_0xb38f('0x13')](_0x5e037a,_0x1252b6)[_0xb38f('0x14')](function(_0x3eb027){logger[_0xb38f('0x15')](_0xb38f('0x16'),_0x3a5441,_0xb38f('0x17'));logger[_0xb38f('0x18')]('Dashboard,\x20%s,\x20%s,\x20%s',_0x3a5441,'request\x20sent',JSON['stringify'](_0x3eb027));if(_0x3eb027['error']){if(_0x3eb027[_0xb38f('0x19')][_0xb38f('0x1a')]===0x1f4){logger[_0xb38f('0x19')](_0xb38f('0x16'),_0x3a5441,_0x3eb027[_0xb38f('0x19')][_0xb38f('0x1b')]);return _0x331549(_0x3eb027[_0xb38f('0x19')][_0xb38f('0x1b')]);}logger['error']('Dashboard,\x20%s,\x20%s',_0x3a5441,_0x3eb027[_0xb38f('0x19')]['message']);return _0xc17932(_0x3eb027[_0xb38f('0x19')][_0xb38f('0x1b')]);}else{logger[_0xb38f('0x15')](_0xb38f('0x16'),_0x3a5441,_0xb38f('0x17'));_0xc17932(_0x3eb027[_0xb38f('0x1c')][_0xb38f('0x1b')]);}})[_0xb38f('0x1d')](function(_0x57c380){logger[_0xb38f('0x19')](_0xb38f('0x16'),_0x3a5441,_0x57c380);_0x331549(_0x57c380);});});}
\ No newline at end of file
+var _0xf468=['./dashboard.socket','register','request','then','info','Dashboard,\x20%s,\x20%s','request\x20sent','debug','Dashboard,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client','http','defaults','redis','localhost'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0xf468,0x195));var _0x8f46=function(_0x297fd3,_0x115406){_0x297fd3=_0x297fd3-0x0;var _0x2af381=_0xf468[_0x297fd3];return _0x2af381;};'use strict';var _=require(_0x8f46('0x0'));var util=require(_0x8f46('0x1'));var moment=require(_0x8f46('0x2'));var BPromise=require(_0x8f46('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x8f46('0x4'));var db=require(_0x8f46('0x5'))['db'];var utils=require(_0x8f46('0x6'));var logger=require(_0x8f46('0x7'))(_0x8f46('0x8'));var config=require('../../config/environment');var jayson=require(_0x8f46('0x9'));var client=jayson[_0x8f46('0xa')][_0x8f46('0xb')]({'port':0x232a});config['redis']=_[_0x8f46('0xc')](config[_0x8f46('0xd')],{'host':_0x8f46('0xe'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config[_0x8f46('0xd')]));require(_0x8f46('0xf'))[_0x8f46('0x10')](socket);function respondWithRpcPromise(_0x574cd5,_0x3622cc,_0x25427c){return new BPromise(function(_0xfbbf34,_0x41e5a5){return client[_0x8f46('0x11')](_0x574cd5,_0x25427c)[_0x8f46('0x12')](function(_0xdcacc1){logger[_0x8f46('0x13')](_0x8f46('0x14'),_0x3622cc,_0x8f46('0x15'));logger[_0x8f46('0x16')](_0x8f46('0x17'),_0x3622cc,_0x8f46('0x15'),JSON[_0x8f46('0x18')](_0xdcacc1));if(_0xdcacc1[_0x8f46('0x19')]){if(_0xdcacc1[_0x8f46('0x19')][_0x8f46('0x1a')]===0x1f4){logger['error'](_0x8f46('0x14'),_0x3622cc,_0xdcacc1[_0x8f46('0x19')][_0x8f46('0x1b')]);return _0x41e5a5(_0xdcacc1['error']['message']);}logger[_0x8f46('0x19')](_0x8f46('0x14'),_0x3622cc,_0xdcacc1['error']['message']);return _0xfbbf34(_0xdcacc1['error'][_0x8f46('0x1b')]);}else{logger[_0x8f46('0x13')]('Dashboard,\x20%s,\x20%s',_0x3622cc,_0x8f46('0x15'));_0xfbbf34(_0xdcacc1[_0x8f46('0x1c')][_0x8f46('0x1b')]);}})[_0x8f46('0x1d')](function(_0x599bf4){logger[_0x8f46('0x19')](_0x8f46('0x14'),_0x3622cc,_0x599bf4);_0x41e5a5(_0x599bf4);});});}
\ No newline at end of file