Built motion from commit 97153652.|2.6.26
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.rpc.js
index ddf60fa..e78ee6d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcc6b=['catch','util','moment','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','JscriptyAnswerReport,\x20%s,\x20%s','request\x20sent','debug','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result'];(function(_0x167cc1,_0x56ef5a){var _0x10bc4b=function(_0xd6a255){while(--_0xd6a255){_0x167cc1['push'](_0x167cc1['shift']());}};_0x10bc4b(++_0x56ef5a);}(_0xcc6b,0x19f));var _0xbcc6=function(_0x509dcb,_0x2059f4){_0x509dcb=_0x509dcb-0x0;var _0x2860ba=_0xcc6b[_0x509dcb];return _0x2860ba;};'use strict';var _=require('lodash');var util=require(_0xbcc6('0x0'));var moment=require(_0xbcc6('0x1'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xbcc6('0x2'));var db=require(_0xbcc6('0x3'))['db'];var utils=require(_0xbcc6('0x4'));var logger=require(_0xbcc6('0x5'))(_0xbcc6('0x6'));var config=require(_0xbcc6('0x7'));var jayson=require(_0xbcc6('0x8'));var client=jayson[_0xbcc6('0x9')][_0xbcc6('0xa')]({'port':0x232a});function respondWithRpcPromise(_0xb8acf4,_0x211903,_0x262f57){return new BPromise(function(_0x1733c2,_0x137d04){return client[_0xbcc6('0xb')](_0xb8acf4,_0x262f57)['then'](function(_0x4b2f04){logger['info'](_0xbcc6('0xc'),_0x211903,_0xbcc6('0xd'));logger[_0xbcc6('0xe')](_0xbcc6('0xf'),_0x211903,'request\x20sent',JSON[_0xbcc6('0x10')](_0x4b2f04));if(_0x4b2f04['error']){if(_0x4b2f04[_0xbcc6('0x11')][_0xbcc6('0x12')]===0x1f4){logger[_0xbcc6('0x11')](_0xbcc6('0xc'),_0x211903,_0x4b2f04[_0xbcc6('0x11')][_0xbcc6('0x13')]);return _0x137d04(_0x4b2f04[_0xbcc6('0x11')][_0xbcc6('0x13')]);}logger[_0xbcc6('0x11')](_0xbcc6('0xc'),_0x211903,_0x4b2f04[_0xbcc6('0x11')]['message']);return _0x1733c2(_0x4b2f04[_0xbcc6('0x11')][_0xbcc6('0x13')]);}else{logger[_0xbcc6('0x14')](_0xbcc6('0xc'),_0x211903,_0xbcc6('0xd'));_0x1733c2(_0x4b2f04[_0xbcc6('0x15')][_0xbcc6('0x13')]);}})[_0xbcc6('0x16')](function(_0x54a5d7){logger['error'](_0xbcc6('0xc'),_0x211903,_0x54a5d7);_0x137d04(_0x54a5d7);});});}
\ No newline at end of file
+var _0x4619=['jayson/promise','client','http','then','info','JscriptyAnswerReport,\x20%s,\x20%s','request\x20sent','debug','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','error','code','message','lodash','util','bluebird','randomstring','ioredis','../../config/logger','../../config/environment'];(function(_0x3783d8,_0x8aad69){var _0x44a863=function(_0x4c4c88){while(--_0x4c4c88){_0x3783d8['push'](_0x3783d8['shift']());}};_0x44a863(++_0x8aad69);}(_0x4619,0x162));var _0x9461=function(_0x4f49bb,_0x45651b){_0x4f49bb=_0x4f49bb-0x0;var _0x2c57db=_0x4619[_0x4f49bb];return _0x2c57db;};'use strict';var _=require(_0x9461('0x0'));var util=require(_0x9461('0x1'));var moment=require('moment');var BPromise=require(_0x9461('0x2'));var rs=require(_0x9461('0x3'));var fs=require('fs');var Redis=require(_0x9461('0x4'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x9461('0x5'))('rpc');var config=require(_0x9461('0x6'));var jayson=require(_0x9461('0x7'));var client=jayson[_0x9461('0x8')][_0x9461('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x1f654b,_0x56bdfd,_0x5f0fe7){return new BPromise(function(_0x1d7a3b,_0x1876e8){return client['request'](_0x1f654b,_0x5f0fe7)[_0x9461('0xa')](function(_0x268ff0){logger[_0x9461('0xb')](_0x9461('0xc'),_0x56bdfd,_0x9461('0xd'));logger[_0x9461('0xe')](_0x9461('0xf'),_0x56bdfd,_0x9461('0xd'),JSON['stringify'](_0x268ff0));if(_0x268ff0['error']){if(_0x268ff0[_0x9461('0x10')][_0x9461('0x11')]===0x1f4){logger['error'](_0x9461('0xc'),_0x56bdfd,_0x268ff0[_0x9461('0x10')][_0x9461('0x12')]);return _0x1876e8(_0x268ff0[_0x9461('0x10')][_0x9461('0x12')]);}logger[_0x9461('0x10')]('JscriptyAnswerReport,\x20%s,\x20%s',_0x56bdfd,_0x268ff0[_0x9461('0x10')][_0x9461('0x12')]);return _0x1d7a3b(_0x268ff0[_0x9461('0x10')][_0x9461('0x12')]);}else{logger[_0x9461('0xb')]('JscriptyAnswerReport,\x20%s,\x20%s',_0x56bdfd,_0x9461('0xd'));_0x1d7a3b(_0x268ff0['result'][_0x9461('0x12')]);}})['catch'](function(_0x28cdfc){logger[_0x9461('0x10')](_0x9461('0xc'),_0x56bdfd,_0x28cdfc);_0x1876e8(_0x28cdfc);});});}
\ No newline at end of file