Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.rpc.js
index 66a7127..a6c3b8e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa673=['request','then','JscriptyAnswerReport,\x20%s,\x20%s','debug','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','info','result','catch','lodash','util','bluebird','rpc','../../config/environment','jayson/promise','client'];(function(_0x42bd68,_0x4ad8a6){var _0x2c0f9a=function(_0x308f4c){while(--_0x308f4c){_0x42bd68['push'](_0x42bd68['shift']());}};_0x2c0f9a(++_0x4ad8a6);}(_0xa673,0x175));var _0x3a67=function(_0x5abf02,_0x12813c){_0x5abf02=_0x5abf02-0x0;var _0x1a5c39=_0xa673[_0x5abf02];return _0x1a5c39;};'use strict';var _=require(_0x3a67('0x0'));var util=require(_0x3a67('0x1'));var moment=require('moment');var BPromise=require(_0x3a67('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x3a67('0x3'));var config=require(_0x3a67('0x4'));var jayson=require(_0x3a67('0x5'));var client=jayson[_0x3a67('0x6')]['http']({'port':0x232a});function respondWithRpcPromise(_0x38dab0,_0x581e81,_0x555cbc){return new BPromise(function(_0x763a9d,_0x463f96){return client[_0x3a67('0x7')](_0x38dab0,_0x555cbc)[_0x3a67('0x8')](function(_0x1a1d7f){logger['info'](_0x3a67('0x9'),_0x581e81,'request\x20sent');logger[_0x3a67('0xa')](_0x3a67('0xb'),_0x581e81,_0x3a67('0xc'),JSON[_0x3a67('0xd')](_0x1a1d7f));if(_0x1a1d7f[_0x3a67('0xe')]){if(_0x1a1d7f['error'][_0x3a67('0xf')]===0x1f4){logger['error'](_0x3a67('0x9'),_0x581e81,_0x1a1d7f[_0x3a67('0xe')][_0x3a67('0x10')]);return _0x463f96(_0x1a1d7f[_0x3a67('0xe')][_0x3a67('0x10')]);}logger[_0x3a67('0xe')](_0x3a67('0x9'),_0x581e81,_0x1a1d7f[_0x3a67('0xe')][_0x3a67('0x10')]);return _0x763a9d(_0x1a1d7f[_0x3a67('0xe')][_0x3a67('0x10')]);}else{logger[_0x3a67('0x11')](_0x3a67('0x9'),_0x581e81,_0x3a67('0xc'));_0x763a9d(_0x1a1d7f[_0x3a67('0x12')][_0x3a67('0x10')]);}})[_0x3a67('0x13')](function(_0x36dcfd){logger[_0x3a67('0xe')](_0x3a67('0x9'),_0x581e81,_0x36dcfd);_0x463f96(_0x36dcfd);});});}
\ No newline at end of file
+var _0xeac1=['lodash','util','bluebird','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','request\x20sent','debug','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','code','error','JscriptyAnswerReport,\x20%s,\x20%s','message'];(function(_0x21e9ce,_0x31fe71){var _0xa6f302=function(_0x58398b){while(--_0x58398b){_0x21e9ce['push'](_0x21e9ce['shift']());}};_0xa6f302(++_0x31fe71);}(_0xeac1,0x143));var _0x1eac=function(_0x5cc678,_0x17bccc){_0x5cc678=_0x5cc678-0x0;var _0x4034e7=_0xeac1[_0x5cc678];return _0x4034e7;};'use strict';var _=require(_0x1eac('0x0'));var util=require(_0x1eac('0x1'));var moment=require('moment');var BPromise=require(_0x1eac('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x1eac('0x3'));var logger=require(_0x1eac('0x4'))(_0x1eac('0x5'));var config=require(_0x1eac('0x6'));var jayson=require(_0x1eac('0x7'));var client=jayson[_0x1eac('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x2e019f,_0xc53f56,_0x197124){return new BPromise(function(_0x1103f8,_0x4b96d4){return client[_0x1eac('0x9')](_0x2e019f,_0x197124)[_0x1eac('0xa')](function(_0x1a514d){logger[_0x1eac('0xb')]('JscriptyAnswerReport,\x20%s,\x20%s',_0xc53f56,_0x1eac('0xc'));logger[_0x1eac('0xd')](_0x1eac('0xe'),_0xc53f56,'request\x20sent',JSON['stringify'](_0x1a514d));if(_0x1a514d['error']){if(_0x1a514d['error'][_0x1eac('0xf')]===0x1f4){logger[_0x1eac('0x10')](_0x1eac('0x11'),_0xc53f56,_0x1a514d[_0x1eac('0x10')][_0x1eac('0x12')]);return _0x4b96d4(_0x1a514d[_0x1eac('0x10')][_0x1eac('0x12')]);}logger[_0x1eac('0x10')]('JscriptyAnswerReport,\x20%s,\x20%s',_0xc53f56,_0x1a514d[_0x1eac('0x10')][_0x1eac('0x12')]);return _0x1103f8(_0x1a514d['error'][_0x1eac('0x12')]);}else{logger[_0x1eac('0xb')]('JscriptyAnswerReport,\x20%s,\x20%s',_0xc53f56,_0x1eac('0xc'));_0x1103f8(_0x1a514d['result'][_0x1eac('0x12')]);}})['catch'](function(_0x625f94){logger[_0x1eac('0x10')](_0x1eac('0x11'),_0xc53f56,_0x625f94);_0x4b96d4(_0x625f94);});});}
\ No newline at end of file