Built motion from commit (unavailable).|2.5.23
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.rpc.js
index d0531e6..e134a2a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7226=['message','result','lodash','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','JscriptyAnswerReport,\x20%s,\x20%s','request\x20sent','debug','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','error','code'];(function(_0x127f1d,_0x106cfa){var _0x630148=function(_0x2681a3){while(--_0x2681a3){_0x127f1d['push'](_0x127f1d['shift']());}};_0x630148(++_0x106cfa);}(_0x7226,0x162));var _0x6722=function(_0xad97b0,_0x17ca92){_0xad97b0=_0xad97b0-0x0;var _0x52c5eb=_0x7226[_0xad97b0];return _0x52c5eb;};'use strict';var _=require(_0x6722('0x0'));var util=require('util');var moment=require(_0x6722('0x1'));var BPromise=require('bluebird');var rs=require(_0x6722('0x2'));var fs=require('fs');var Redis=require(_0x6722('0x3'));var db=require(_0x6722('0x4'))['db'];var utils=require(_0x6722('0x5'));var logger=require(_0x6722('0x6'))(_0x6722('0x7'));var config=require(_0x6722('0x8'));var jayson=require(_0x6722('0x9'));var client=jayson[_0x6722('0xa')][_0x6722('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x5f3194,_0x3991af,_0x1fd8c5){return new BPromise(function(_0x3bd06c,_0x4bddf3){return client[_0x6722('0xc')](_0x5f3194,_0x1fd8c5)[_0x6722('0xd')](function(_0xad4546){logger['info'](_0x6722('0xe'),_0x3991af,_0x6722('0xf'));logger[_0x6722('0x10')](_0x6722('0x11'),_0x3991af,_0x6722('0xf'),JSON['stringify'](_0xad4546));if(_0xad4546[_0x6722('0x12')]){if(_0xad4546['error'][_0x6722('0x13')]===0x1f4){logger[_0x6722('0x12')](_0x6722('0xe'),_0x3991af,_0xad4546['error'][_0x6722('0x14')]);return _0x4bddf3(_0xad4546[_0x6722('0x12')]['message']);}logger['error'](_0x6722('0xe'),_0x3991af,_0xad4546[_0x6722('0x12')][_0x6722('0x14')]);return _0x3bd06c(_0xad4546['error'][_0x6722('0x14')]);}else{logger['info'](_0x6722('0xe'),_0x3991af,_0x6722('0xf'));_0x3bd06c(_0xad4546[_0x6722('0x15')]['message']);}})['catch'](function(_0x3862e1){logger[_0x6722('0x12')](_0x6722('0xe'),_0x3991af,_0x3862e1);_0x4bddf3(_0x3862e1);});});}
\ No newline at end of file
+var _0xecd6=['http','request','then','info','JscriptyAnswerReport,\x20%s,\x20%s','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client'];(function(_0x205329,_0x223a33){var _0x1594ab=function(_0x561afb){while(--_0x561afb){_0x205329['push'](_0x205329['shift']());}};_0x1594ab(++_0x223a33);}(_0xecd6,0x1ee));var _0x6ecd=function(_0x3cd58c,_0xdc02e5){_0x3cd58c=_0x3cd58c-0x0;var _0x42e24a=_0xecd6[_0x3cd58c];return _0x42e24a;};'use strict';var _=require(_0x6ecd('0x0'));var util=require(_0x6ecd('0x1'));var moment=require(_0x6ecd('0x2'));var BPromise=require(_0x6ecd('0x3'));var rs=require(_0x6ecd('0x4'));var fs=require('fs');var Redis=require(_0x6ecd('0x5'));var db=require(_0x6ecd('0x6'))['db'];var utils=require(_0x6ecd('0x7'));var logger=require('../../config/logger')(_0x6ecd('0x8'));var config=require(_0x6ecd('0x9'));var jayson=require(_0x6ecd('0xa'));var client=jayson[_0x6ecd('0xb')][_0x6ecd('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x1ccb03,_0xac68d,_0x47f983){return new BPromise(function(_0x38ea78,_0xbca00d){return client[_0x6ecd('0xd')](_0x1ccb03,_0x47f983)[_0x6ecd('0xe')](function(_0x10684f){logger[_0x6ecd('0xf')](_0x6ecd('0x10'),_0xac68d,'request\x20sent');logger['debug'](_0x6ecd('0x11'),_0xac68d,_0x6ecd('0x12'),JSON[_0x6ecd('0x13')](_0x10684f));if(_0x10684f[_0x6ecd('0x14')]){if(_0x10684f[_0x6ecd('0x14')]['code']===0x1f4){logger[_0x6ecd('0x14')](_0x6ecd('0x10'),_0xac68d,_0x10684f['error']['message']);return _0xbca00d(_0x10684f[_0x6ecd('0x14')][_0x6ecd('0x15')]);}logger[_0x6ecd('0x14')](_0x6ecd('0x10'),_0xac68d,_0x10684f['error'][_0x6ecd('0x15')]);return _0x38ea78(_0x10684f['error'][_0x6ecd('0x15')]);}else{logger['info']('JscriptyAnswerReport,\x20%s,\x20%s',_0xac68d,_0x6ecd('0x12'));_0x38ea78(_0x10684f['result'][_0x6ecd('0x15')]);}})[_0x6ecd('0x16')](function(_0x4beeb0){logger[_0x6ecd('0x14')](_0x6ecd('0x10'),_0xac68d,_0x4beeb0);_0xbca00d(_0x4beeb0);});});}
\ No newline at end of file