Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / dashboard / dashboard.rpc.js
index cf0504a..6771a42 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0xbbea=['../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','http','redis','defaults','localhost','socket.io-emitter','./dashboard.socket','register','request','then','info','Dashboard,\x20%s,\x20%s','request\x20sent','debug','Dashboard,\x20%s,\x20%s,\x20%s','error','message','catch','lodash','util','moment','bluebird','randomstring','ioredis'];(function(_0x8c43de,_0x90ff31){var _0xa6591b=function(_0x469716){while(--_0x469716){_0x8c43de['push'](_0x8c43de['shift']());}};_0xa6591b(++_0x90ff31);}(_0xbbea,0xda));var _0xabbe=function(_0x4b369d,_0x265eb8){_0x4b369d=_0x4b369d-0x0;var _0x571a98=_0xbbea[_0x4b369d];return _0x571a98;};'use strict';var _=require(_0xabbe('0x0'));var util=require(_0xabbe('0x1'));var moment=require(_0xabbe('0x2'));var BPromise=require(_0xabbe('0x3'));var rs=require(_0xabbe('0x4'));var fs=require('fs');var Redis=require(_0xabbe('0x5'));var db=require(_0xabbe('0x6'))['db'];var utils=require(_0xabbe('0x7'));var logger=require(_0xabbe('0x8'))(_0xabbe('0x9'));var config=require(_0xabbe('0xa'));var jayson=require('jayson/promise');var client=jayson['client'][_0xabbe('0xb')]({'port':0x232a});config[_0xabbe('0xc')]=_[_0xabbe('0xd')](config[_0xabbe('0xc')],{'host':_0xabbe('0xe'),'port':0x18eb});var socket=require(_0xabbe('0xf'))(new Redis(config['redis']));require(_0xabbe('0x10'))[_0xabbe('0x11')](socket);function respondWithRpcPromise(_0x34fd4b,_0x512e7d,_0x228300){return new BPromise(function(_0x6b728c,_0x1002f6){return client[_0xabbe('0x12')](_0x34fd4b,_0x228300)[_0xabbe('0x13')](function(_0x413247){logger[_0xabbe('0x14')](_0xabbe('0x15'),_0x512e7d,_0xabbe('0x16'));logger[_0xabbe('0x17')](_0xabbe('0x18'),_0x512e7d,_0xabbe('0x16'),JSON['stringify'](_0x413247));if(_0x413247['error']){if(_0x413247['error']['code']===0x1f4){logger[_0xabbe('0x19')](_0xabbe('0x15'),_0x512e7d,_0x413247['error'][_0xabbe('0x1a')]);return _0x1002f6(_0x413247[_0xabbe('0x19')][_0xabbe('0x1a')]);}logger[_0xabbe('0x19')](_0xabbe('0x15'),_0x512e7d,_0x413247[_0xabbe('0x19')][_0xabbe('0x1a')]);return _0x6b728c(_0x413247[_0xabbe('0x19')][_0xabbe('0x1a')]);}else{logger[_0xabbe('0x14')]('Dashboard,\x20%s,\x20%s',_0x512e7d,_0xabbe('0x16'));_0x6b728c(_0x413247['result']['message']);}})[_0xabbe('0x1b')](function(_0x3f1c12){logger[_0xabbe('0x19')](_0xabbe('0x15'),_0x512e7d,_0x3f1c12);_0x1002f6(_0x3f1c12);});});}
\ No newline at end of file