Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.rpc.js
index 7520139..ddc834c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x59ff=['../../config/environment','jayson/promise','http','request','then','info','JscriptyAnswerReport,\x20%s,\x20%s','request\x20sent','JscriptyAnswerReport,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','lodash','util','moment','bluebird','ioredis','../../config/utils','rpc'];(function(_0x56f6c0,_0x37c097){var _0x249342=function(_0x4ab8d9){while(--_0x4ab8d9){_0x56f6c0['push'](_0x56f6c0['shift']());}};_0x249342(++_0x37c097);}(_0x59ff,0x8c));var _0xf59f=function(_0x4e8a9c,_0x56f599){_0x4e8a9c=_0x4e8a9c-0x0;var _0x34de7b=_0x59ff[_0x4e8a9c];return _0x34de7b;};'use strict';var _=require(_0xf59f('0x0'));var util=require(_0xf59f('0x1'));var moment=require(_0xf59f('0x2'));var BPromise=require(_0xf59f('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xf59f('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0xf59f('0x5'));var logger=require('../../config/logger')(_0xf59f('0x6'));var config=require(_0xf59f('0x7'));var jayson=require(_0xf59f('0x8'));var client=jayson['client'][_0xf59f('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x57a3f3,_0x28ff83,_0x14d9ae){return new BPromise(function(_0xfa71fb,_0x1e81d5){return client[_0xf59f('0xa')](_0x57a3f3,_0x14d9ae)[_0xf59f('0xb')](function(_0x8927ba){logger[_0xf59f('0xc')](_0xf59f('0xd'),_0x28ff83,_0xf59f('0xe'));logger['debug'](_0xf59f('0xf'),_0x28ff83,_0xf59f('0xe'),JSON[_0xf59f('0x10')](_0x8927ba));if(_0x8927ba['error']){if(_0x8927ba[_0xf59f('0x11')]['code']===0x1f4){logger[_0xf59f('0x11')](_0xf59f('0xd'),_0x28ff83,_0x8927ba[_0xf59f('0x11')][_0xf59f('0x12')]);return _0x1e81d5(_0x8927ba[_0xf59f('0x11')][_0xf59f('0x12')]);}logger[_0xf59f('0x11')](_0xf59f('0xd'),_0x28ff83,_0x8927ba['error'][_0xf59f('0x12')]);return _0xfa71fb(_0x8927ba['error'][_0xf59f('0x12')]);}else{logger[_0xf59f('0xc')](_0xf59f('0xd'),_0x28ff83,_0xf59f('0xe'));_0xfa71fb(_0x8927ba[_0xf59f('0x13')][_0xf59f('0x12')]);}})[_0xf59f('0x14')](function(_0x439825){logger[_0xf59f('0x11')](_0xf59f('0xd'),_0x28ff83,_0x439825);_0x1e81d5(_0x439825);});});}
\ No newline at end of file
+var _0x2e0b=['info','JscriptyAnswerReport,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','lodash','util','moment','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then'];(function(_0x4d08b8,_0x34c445){var _0x70214a=function(_0x4db67c){while(--_0x4db67c){_0x4d08b8['push'](_0x4d08b8['shift']());}};_0x70214a(++_0x34c445);}(_0x2e0b,0x171));var _0xb2e0=function(_0x57784b,_0x49a858){_0x57784b=_0x57784b-0x0;var _0x4505fa=_0x2e0b[_0x57784b];return _0x4505fa;};'use strict';var _=require(_0xb2e0('0x0'));var util=require(_0xb2e0('0x1'));var moment=require(_0xb2e0('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xb2e0('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0xb2e0('0x4'))(_0xb2e0('0x5'));var config=require(_0xb2e0('0x6'));var jayson=require(_0xb2e0('0x7'));var client=jayson[_0xb2e0('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x47951b,_0x4628dc,_0x51d8b6){return new BPromise(function(_0x3088bf,_0x47cf80){return client[_0xb2e0('0x9')](_0x47951b,_0x51d8b6)[_0xb2e0('0xa')](function(_0x1043a6){logger[_0xb2e0('0xb')](_0xb2e0('0xc'),_0x4628dc,_0xb2e0('0xd'));logger['debug']('JscriptyAnswerReport,\x20%s,\x20%s,\x20%s',_0x4628dc,_0xb2e0('0xd'),JSON[_0xb2e0('0xe')](_0x1043a6));if(_0x1043a6[_0xb2e0('0xf')]){if(_0x1043a6[_0xb2e0('0xf')]['code']===0x1f4){logger[_0xb2e0('0xf')](_0xb2e0('0xc'),_0x4628dc,_0x1043a6['error'][_0xb2e0('0x10')]);return _0x47cf80(_0x1043a6[_0xb2e0('0xf')][_0xb2e0('0x10')]);}logger[_0xb2e0('0xf')](_0xb2e0('0xc'),_0x4628dc,_0x1043a6['error'][_0xb2e0('0x10')]);return _0x3088bf(_0x1043a6[_0xb2e0('0xf')]['message']);}else{logger[_0xb2e0('0xb')](_0xb2e0('0xc'),_0x4628dc,_0xb2e0('0xd'));_0x3088bf(_0x1043a6[_0xb2e0('0x11')]['message']);}})[_0xb2e0('0x12')](function(_0x3965d7){logger[_0xb2e0('0xf')]('JscriptyAnswerReport,\x20%s,\x20%s',_0x4628dc,_0x3965d7);_0x47cf80(_0x3965d7);});});}
\ No newline at end of file