Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.rpc.js
index 0195539..4f193e6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0c6f=['../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','JscriptyAnswerReport,\x20%s,\x20%s','request\x20sent','debug','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','stringify','error','message','info','result','catch','lodash','moment','bluebird','randomstring','../../mysqldb','../../config/utils'];(function(_0x371704,_0x13d301){var _0xfc3801=function(_0x169966){while(--_0x169966){_0x371704['push'](_0x371704['shift']());}};_0xfc3801(++_0x13d301);}(_0x0c6f,0x10e));var _0xf0c6=function(_0x279e8e,_0x352889){_0x279e8e=_0x279e8e-0x0;var _0x45816d=_0x0c6f[_0x279e8e];return _0x45816d;};'use strict';var _=require(_0xf0c6('0x0'));var util=require('util');var moment=require(_0xf0c6('0x1'));var BPromise=require(_0xf0c6('0x2'));var rs=require(_0xf0c6('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xf0c6('0x4'))['db'];var utils=require(_0xf0c6('0x5'));var logger=require(_0xf0c6('0x6'))(_0xf0c6('0x7'));var config=require(_0xf0c6('0x8'));var jayson=require(_0xf0c6('0x9'));var client=jayson[_0xf0c6('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x468f04,_0x58dc3d,_0x3b4a00){return new BPromise(function(_0x74d9cd,_0x1bb637){return client[_0xf0c6('0xb')](_0x468f04,_0x3b4a00)[_0xf0c6('0xc')](function(_0x59d72a){logger['info'](_0xf0c6('0xd'),_0x58dc3d,_0xf0c6('0xe'));logger[_0xf0c6('0xf')](_0xf0c6('0x10'),_0x58dc3d,_0xf0c6('0xe'),JSON[_0xf0c6('0x11')](_0x59d72a));if(_0x59d72a['error']){if(_0x59d72a[_0xf0c6('0x12')]['code']===0x1f4){logger[_0xf0c6('0x12')](_0xf0c6('0xd'),_0x58dc3d,_0x59d72a[_0xf0c6('0x12')][_0xf0c6('0x13')]);return _0x1bb637(_0x59d72a['error'][_0xf0c6('0x13')]);}logger['error'](_0xf0c6('0xd'),_0x58dc3d,_0x59d72a[_0xf0c6('0x12')][_0xf0c6('0x13')]);return _0x74d9cd(_0x59d72a[_0xf0c6('0x12')][_0xf0c6('0x13')]);}else{logger[_0xf0c6('0x14')]('JscriptyAnswerReport,\x20%s,\x20%s',_0x58dc3d,_0xf0c6('0xe'));_0x74d9cd(_0x59d72a[_0xf0c6('0x15')]['message']);}})[_0xf0c6('0x16')](function(_0x480595){logger[_0xf0c6('0x12')](_0xf0c6('0xd'),_0x58dc3d,_0x480595);_0x1bb637(_0x480595);});});}
\ No newline at end of file
+var _0x648f=['request\x20sent','error','code','message','info','result','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','JscriptyAnswerReport,\x20%s,\x20%s','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s'];(function(_0x413feb,_0x10477f){var _0x40ee88=function(_0x32a3f6){while(--_0x32a3f6){_0x413feb['push'](_0x413feb['shift']());}};_0x40ee88(++_0x10477f);}(_0x648f,0x124));var _0xf648=function(_0x301148,_0x25b884){_0x301148=_0x301148-0x0;var _0x42ce24=_0x648f[_0x301148];return _0x42ce24;};'use strict';var _=require('lodash');var util=require(_0xf648('0x0'));var moment=require(_0xf648('0x1'));var BPromise=require(_0xf648('0x2'));var rs=require(_0xf648('0x3'));var fs=require('fs');var Redis=require(_0xf648('0x4'));var db=require(_0xf648('0x5'))['db'];var utils=require(_0xf648('0x6'));var logger=require(_0xf648('0x7'))(_0xf648('0x8'));var config=require(_0xf648('0x9'));var jayson=require(_0xf648('0xa'));var client=jayson['client'][_0xf648('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x394d25,_0x41da33,_0xe0e416){return new BPromise(function(_0x56e4d7,_0x4bbb06){return client[_0xf648('0xc')](_0x394d25,_0xe0e416)[_0xf648('0xd')](function(_0x2324fa){logger['info'](_0xf648('0xe'),_0x41da33,'request\x20sent');logger['debug'](_0xf648('0xf'),_0x41da33,_0xf648('0x10'),JSON['stringify'](_0x2324fa));if(_0x2324fa[_0xf648('0x11')]){if(_0x2324fa[_0xf648('0x11')][_0xf648('0x12')]===0x1f4){logger[_0xf648('0x11')]('JscriptyAnswerReport,\x20%s,\x20%s',_0x41da33,_0x2324fa[_0xf648('0x11')][_0xf648('0x13')]);return _0x4bbb06(_0x2324fa[_0xf648('0x11')]['message']);}logger[_0xf648('0x11')](_0xf648('0xe'),_0x41da33,_0x2324fa[_0xf648('0x11')][_0xf648('0x13')]);return _0x56e4d7(_0x2324fa['error']['message']);}else{logger[_0xf648('0x14')](_0xf648('0xe'),_0x41da33,_0xf648('0x10'));_0x56e4d7(_0x2324fa[_0xf648('0x15')][_0xf648('0x13')]);}})['catch'](function(_0x5f5ddd){logger['error'](_0xf648('0xe'),_0x41da33,_0x5f5ddd);_0x4bbb06(_0x5f5ddd);});});}
\ No newline at end of file