Built motion from commit 97153652.|2.6.26
[motion2.git] / server / api / jscriptyQuestionReport / jscriptyQuestionReport.rpc.js
index 761fb38..1330602 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x01a9=['JscriptyQuestionReport,\x20%s,\x20%s','request\x20sent','debug','JscriptyQuestionReport,\x20%s,\x20%s,\x20%s','error','message','result','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','info'];(function(_0x295f0a,_0x561ed7){var _0x6b1b4f=function(_0x20337d){while(--_0x20337d){_0x295f0a['push'](_0x295f0a['shift']());}};_0x6b1b4f(++_0x561ed7);}(_0x01a9,0x8b));var _0x901a=function(_0x263a74,_0xc31414){_0x263a74=_0x263a74-0x0;var _0x2aa86c=_0x01a9[_0x263a74];return _0x2aa86c;};'use strict';var _=require(_0x901a('0x0'));var util=require(_0x901a('0x1'));var moment=require('moment');var BPromise=require(_0x901a('0x2'));var rs=require(_0x901a('0x3'));var fs=require('fs');var Redis=require(_0x901a('0x4'));var db=require(_0x901a('0x5'))['db'];var utils=require(_0x901a('0x6'));var logger=require('../../config/logger')(_0x901a('0x7'));var config=require(_0x901a('0x8'));var jayson=require(_0x901a('0x9'));var client=jayson[_0x901a('0xa')][_0x901a('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x541e50,_0x4d2696,_0x295f8a){return new BPromise(function(_0x4c26a4,_0x34e29e){return client[_0x901a('0xc')](_0x541e50,_0x295f8a)[_0x901a('0xd')](function(_0x526c9){logger[_0x901a('0xe')](_0x901a('0xf'),_0x4d2696,_0x901a('0x10'));logger[_0x901a('0x11')](_0x901a('0x12'),_0x4d2696,_0x901a('0x10'),JSON['stringify'](_0x526c9));if(_0x526c9[_0x901a('0x13')]){if(_0x526c9[_0x901a('0x13')]['code']===0x1f4){logger[_0x901a('0x13')](_0x901a('0xf'),_0x4d2696,_0x526c9[_0x901a('0x13')][_0x901a('0x14')]);return _0x34e29e(_0x526c9['error']['message']);}logger[_0x901a('0x13')](_0x901a('0xf'),_0x4d2696,_0x526c9[_0x901a('0x13')]['message']);return _0x4c26a4(_0x526c9[_0x901a('0x13')]['message']);}else{logger[_0x901a('0xe')](_0x901a('0xf'),_0x4d2696,_0x901a('0x10'));_0x4c26a4(_0x526c9[_0x901a('0x15')][_0x901a('0x14')]);}})['catch'](function(_0x1de4dd){logger[_0x901a('0x13')]('JscriptyQuestionReport,\x20%s,\x20%s',_0x4d2696,_0x1de4dd);_0x34e29e(_0x1de4dd);});});}
\ No newline at end of file
+var _0x7ca4=['../../mysqldb','rpc','../../config/environment','jayson/promise','http','request','request\x20sent','debug','JscriptyQuestionReport,\x20%s,\x20%s,\x20%s','stringify','error','message','JscriptyQuestionReport,\x20%s,\x20%s','info','result','catch','lodash','util','moment','randomstring'];(function(_0x11f168,_0x36fd15){var _0x3a5e27=function(_0x3274e1){while(--_0x3274e1){_0x11f168['push'](_0x11f168['shift']());}};_0x3a5e27(++_0x36fd15);}(_0x7ca4,0x1dc));var _0x47ca=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x7ca4[_0xa464c9];return _0x3d73c4;};'use strict';var _=require(_0x47ca('0x0'));var util=require(_0x47ca('0x1'));var moment=require(_0x47ca('0x2'));var BPromise=require('bluebird');var rs=require(_0x47ca('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x47ca('0x4'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x47ca('0x5'));var config=require(_0x47ca('0x6'));var jayson=require(_0x47ca('0x7'));var client=jayson['client'][_0x47ca('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x13f1c6,_0x207eda,_0x5c77ff){return new BPromise(function(_0x18c32c,_0x2e01dc){return client[_0x47ca('0x9')](_0x13f1c6,_0x5c77ff)['then'](function(_0x1a13bd){logger['info']('JscriptyQuestionReport,\x20%s,\x20%s',_0x207eda,_0x47ca('0xa'));logger[_0x47ca('0xb')](_0x47ca('0xc'),_0x207eda,'request\x20sent',JSON[_0x47ca('0xd')](_0x1a13bd));if(_0x1a13bd[_0x47ca('0xe')]){if(_0x1a13bd['error']['code']===0x1f4){logger['error']('JscriptyQuestionReport,\x20%s,\x20%s',_0x207eda,_0x1a13bd[_0x47ca('0xe')][_0x47ca('0xf')]);return _0x2e01dc(_0x1a13bd['error'][_0x47ca('0xf')]);}logger[_0x47ca('0xe')](_0x47ca('0x10'),_0x207eda,_0x1a13bd['error'][_0x47ca('0xf')]);return _0x18c32c(_0x1a13bd['error'][_0x47ca('0xf')]);}else{logger[_0x47ca('0x11')](_0x47ca('0x10'),_0x207eda,'request\x20sent');_0x18c32c(_0x1a13bd[_0x47ca('0x12')][_0x47ca('0xf')]);}})[_0x47ca('0x13')](function(_0x3b2ebb){logger[_0x47ca('0xe')](_0x47ca('0x10'),_0x207eda,_0x3b2ebb);_0x2e01dc(_0x3b2ebb);});});}
\ No newline at end of file