Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / jscriptyQuestionReport / jscriptyQuestionReport.rpc.js
index d06721e..6fba710 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7641=['../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','info','JscriptyQuestionReport,\x20%s,\x20%s','debug','JscriptyQuestionReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','util','bluebird','../../mysqldb','../../config/utils'];(function(_0x9729d7,_0x1b79a8){var _0x3c4ac6=function(_0x401ba6){while(--_0x401ba6){_0x9729d7['push'](_0x9729d7['shift']());}};_0x3c4ac6(++_0x1b79a8);}(_0x7641,0x15c));var _0x1764=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x7641[_0x2dafbe];return _0x58a45a;};'use strict';var _=require('lodash');var util=require(_0x1764('0x0'));var moment=require('moment');var BPromise=require(_0x1764('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x1764('0x2'))['db'];var utils=require(_0x1764('0x3'));var logger=require(_0x1764('0x4'))(_0x1764('0x5'));var config=require(_0x1764('0x6'));var jayson=require(_0x1764('0x7'));var client=jayson['client'][_0x1764('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x1567c9,_0x2c4e62,_0x3ae1b9){return new BPromise(function(_0x5e902b,_0x1c4434){return client[_0x1764('0x9')](_0x1567c9,_0x3ae1b9)[_0x1764('0xa')](function(_0x2ba103){logger[_0x1764('0xb')](_0x1764('0xc'),_0x2c4e62,'request\x20sent');logger[_0x1764('0xd')](_0x1764('0xe'),_0x2c4e62,_0x1764('0xf'),JSON[_0x1764('0x10')](_0x2ba103));if(_0x2ba103[_0x1764('0x11')]){if(_0x2ba103[_0x1764('0x11')][_0x1764('0x12')]===0x1f4){logger['error']('JscriptyQuestionReport,\x20%s,\x20%s',_0x2c4e62,_0x2ba103['error'][_0x1764('0x13')]);return _0x1c4434(_0x2ba103[_0x1764('0x11')][_0x1764('0x13')]);}logger[_0x1764('0x11')]('JscriptyQuestionReport,\x20%s,\x20%s',_0x2c4e62,_0x2ba103[_0x1764('0x11')][_0x1764('0x13')]);return _0x5e902b(_0x2ba103[_0x1764('0x11')]['message']);}else{logger[_0x1764('0xb')](_0x1764('0xc'),_0x2c4e62,'request\x20sent');_0x5e902b(_0x2ba103[_0x1764('0x14')][_0x1764('0x13')]);}})[_0x1764('0x15')](function(_0xd3987b){logger[_0x1764('0x11')](_0x1764('0xc'),_0x2c4e62,_0xd3987b);_0x1c4434(_0xd3987b);});});}
\ No newline at end of file
+var _0x5419=['debug','JscriptyQuestionReport,\x20%s,\x20%s,\x20%s','stringify','code','error','message','JscriptyQuestionReport,\x20%s,\x20%s','catch','lodash','util','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent'];(function(_0x3fa7d3,_0x37f83c){var _0x4c51bd=function(_0x59e85b){while(--_0x59e85b){_0x3fa7d3['push'](_0x3fa7d3['shift']());}};_0x4c51bd(++_0x37f83c);}(_0x5419,0x18f));var _0x9541=function(_0x1cbba9,_0x477bf5){_0x1cbba9=_0x1cbba9-0x0;var _0x14c91d=_0x5419[_0x1cbba9];return _0x14c91d;};'use strict';var _=require(_0x9541('0x0'));var util=require(_0x9541('0x1'));var moment=require('moment');var BPromise=require(_0x9541('0x2'));var rs=require(_0x9541('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x9541('0x4'))['db'];var utils=require(_0x9541('0x5'));var logger=require(_0x9541('0x6'))('rpc');var config=require(_0x9541('0x7'));var jayson=require(_0x9541('0x8'));var client=jayson[_0x9541('0x9')][_0x9541('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x2d87ed,_0x423fe0,_0x227c2d){return new BPromise(function(_0xc36bc,_0x73b75e){return client[_0x9541('0xb')](_0x2d87ed,_0x227c2d)[_0x9541('0xc')](function(_0x35fc7f){logger[_0x9541('0xd')]('JscriptyQuestionReport,\x20%s,\x20%s',_0x423fe0,_0x9541('0xe'));logger[_0x9541('0xf')](_0x9541('0x10'),_0x423fe0,_0x9541('0xe'),JSON[_0x9541('0x11')](_0x35fc7f));if(_0x35fc7f['error']){if(_0x35fc7f['error'][_0x9541('0x12')]===0x1f4){logger[_0x9541('0x13')]('JscriptyQuestionReport,\x20%s,\x20%s',_0x423fe0,_0x35fc7f[_0x9541('0x13')]['message']);return _0x73b75e(_0x35fc7f[_0x9541('0x13')]['message']);}logger[_0x9541('0x13')]('JscriptyQuestionReport,\x20%s,\x20%s',_0x423fe0,_0x35fc7f[_0x9541('0x13')]['message']);return _0xc36bc(_0x35fc7f[_0x9541('0x13')][_0x9541('0x14')]);}else{logger['info'](_0x9541('0x15'),_0x423fe0,_0x9541('0xe'));_0xc36bc(_0x35fc7f['result'][_0x9541('0x14')]);}})[_0x9541('0x16')](function(_0x585575){logger[_0x9541('0x13')](_0x9541('0x15'),_0x423fe0,_0x585575);_0x73b75e(_0x585575);});});}
\ No newline at end of file