Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.rpc.js
index eb8a572..3ddd8bc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa013=['JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','JscriptyAnswerReport,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x471273,_0x216ce4){var _0x4a318c=function(_0x61d51b){while(--_0x61d51b){_0x471273['push'](_0x471273['shift']());}};_0x4a318c(++_0x216ce4);}(_0xa013,0xe8));var _0x3a01=function(_0x4d8a8f,_0x2afd4c){_0x4d8a8f=_0x4d8a8f-0x0;var _0xfc4adc=_0xa013[_0x4d8a8f];return _0xfc4adc;};'use strict';var _=require(_0x3a01('0x0'));var util=require(_0x3a01('0x1'));var moment=require(_0x3a01('0x2'));var BPromise=require(_0x3a01('0x3'));var rs=require(_0x3a01('0x4'));var fs=require('fs');var Redis=require(_0x3a01('0x5'));var db=require(_0x3a01('0x6'))['db'];var utils=require(_0x3a01('0x7'));var logger=require(_0x3a01('0x8'))('rpc');var config=require(_0x3a01('0x9'));var jayson=require(_0x3a01('0xa'));var client=jayson[_0x3a01('0xb')][_0x3a01('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x41e290,_0x4b5730,_0x697421){return new BPromise(function(_0x1f1767,_0x3f09f1){return client[_0x3a01('0xd')](_0x41e290,_0x697421)[_0x3a01('0xe')](function(_0x3a24d1){logger['info'](_0x3a01('0xf'),_0x4b5730,_0x3a01('0x10'));logger[_0x3a01('0x11')](_0x3a01('0x12'),_0x4b5730,'request\x20sent',JSON[_0x3a01('0x13')](_0x3a24d1));if(_0x3a24d1[_0x3a01('0x14')]){if(_0x3a24d1[_0x3a01('0x14')][_0x3a01('0x15')]===0x1f4){logger[_0x3a01('0x14')](_0x3a01('0xf'),_0x4b5730,_0x3a24d1['error'][_0x3a01('0x16')]);return _0x3f09f1(_0x3a24d1[_0x3a01('0x14')][_0x3a01('0x16')]);}logger[_0x3a01('0x14')](_0x3a01('0xf'),_0x4b5730,_0x3a24d1['error'][_0x3a01('0x16')]);return _0x1f1767(_0x3a24d1['error'][_0x3a01('0x16')]);}else{logger[_0x3a01('0x17')](_0x3a01('0xf'),_0x4b5730,_0x3a01('0x10'));_0x1f1767(_0x3a24d1[_0x3a01('0x18')][_0x3a01('0x16')]);}})['catch'](function(_0x8fb559){logger[_0x3a01('0x14')](_0x3a01('0xf'),_0x4b5730,_0x8fb559);_0x3f09f1(_0x8fb559);});});}
\ No newline at end of file
+var _0xb5cc=['debug','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','request','then','info','JscriptyAnswerReport,\x20%s,\x20%s','request\x20sent'];(function(_0x24ef1c,_0x559d36){var _0x45ab3e=function(_0x21283b){while(--_0x21283b){_0x24ef1c['push'](_0x24ef1c['shift']());}};_0x45ab3e(++_0x559d36);}(_0xb5cc,0x194));var _0xcb5c=function(_0x399c11,_0x3b4997){_0x399c11=_0x399c11-0x0;var _0x4926c4=_0xb5cc[_0x399c11];return _0x4926c4;};'use strict';var _=require(_0xcb5c('0x0'));var util=require('util');var moment=require('moment');var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xcb5c('0x1'));var db=require(_0xcb5c('0x2'))['db'];var utils=require(_0xcb5c('0x3'));var logger=require(_0xcb5c('0x4'))(_0xcb5c('0x5'));var config=require(_0xcb5c('0x6'));var jayson=require('jayson/promise');var client=jayson[_0xcb5c('0x7')][_0xcb5c('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x68898a,_0x3e831c,_0x4a337f){return new BPromise(function(_0x594565,_0x1350cb){return client[_0xcb5c('0x9')](_0x68898a,_0x4a337f)[_0xcb5c('0xa')](function(_0x202887){logger[_0xcb5c('0xb')](_0xcb5c('0xc'),_0x3e831c,_0xcb5c('0xd'));logger[_0xcb5c('0xe')](_0xcb5c('0xf'),_0x3e831c,'request\x20sent',JSON[_0xcb5c('0x10')](_0x202887));if(_0x202887['error']){if(_0x202887[_0xcb5c('0x11')][_0xcb5c('0x12')]===0x1f4){logger[_0xcb5c('0x11')](_0xcb5c('0xc'),_0x3e831c,_0x202887[_0xcb5c('0x11')][_0xcb5c('0x13')]);return _0x1350cb(_0x202887[_0xcb5c('0x11')][_0xcb5c('0x13')]);}logger[_0xcb5c('0x11')](_0xcb5c('0xc'),_0x3e831c,_0x202887['error'][_0xcb5c('0x13')]);return _0x594565(_0x202887['error'][_0xcb5c('0x13')]);}else{logger['info']('JscriptyAnswerReport,\x20%s,\x20%s',_0x3e831c,_0xcb5c('0xd'));_0x594565(_0x202887[_0xcb5c('0x14')][_0xcb5c('0x13')]);}})[_0xcb5c('0x15')](function(_0x45d4e4){logger[_0xcb5c('0x11')](_0xcb5c('0xc'),_0x3e831c,_0x45d4e4);_0x1350cb(_0x45d4e4);});});}
\ No newline at end of file