Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / jscriptyQuestionReport / jscriptyQuestionReport.rpc.js
index a123980..a997185 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4f7c=['randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','client','http','request','then','info','request\x20sent','JscriptyQuestionReport,\x20%s,\x20%s,\x20%s','stringify','error','code','JscriptyQuestionReport,\x20%s,\x20%s','message','result','catch','moment'];(function(_0x42bdad,_0x12836c){var _0x122626=function(_0x2eb29c){while(--_0x2eb29c){_0x42bdad['push'](_0x42bdad['shift']());}};_0x122626(++_0x12836c);}(_0x4f7c,0xe6));var _0xc4f7=function(_0x586588,_0x273b24){_0x586588=_0x586588-0x0;var _0x396b60=_0x4f7c[_0x586588];return _0x396b60;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xc4f7('0x0'));var BPromise=require('bluebird');var rs=require(_0xc4f7('0x1'));var fs=require('fs');var Redis=require(_0xc4f7('0x2'));var db=require(_0xc4f7('0x3'))['db'];var utils=require(_0xc4f7('0x4'));var logger=require(_0xc4f7('0x5'))(_0xc4f7('0x6'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xc4f7('0x7')][_0xc4f7('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x23eab2,_0x529e0d,_0x33b55b){return new BPromise(function(_0x399274,_0x2aa1d2){return client[_0xc4f7('0x9')](_0x23eab2,_0x33b55b)[_0xc4f7('0xa')](function(_0x3dc90e){logger[_0xc4f7('0xb')]('JscriptyQuestionReport,\x20%s,\x20%s',_0x529e0d,_0xc4f7('0xc'));logger['debug'](_0xc4f7('0xd'),_0x529e0d,_0xc4f7('0xc'),JSON[_0xc4f7('0xe')](_0x3dc90e));if(_0x3dc90e[_0xc4f7('0xf')]){if(_0x3dc90e[_0xc4f7('0xf')][_0xc4f7('0x10')]===0x1f4){logger['error'](_0xc4f7('0x11'),_0x529e0d,_0x3dc90e['error'][_0xc4f7('0x12')]);return _0x2aa1d2(_0x3dc90e[_0xc4f7('0xf')][_0xc4f7('0x12')]);}logger[_0xc4f7('0xf')](_0xc4f7('0x11'),_0x529e0d,_0x3dc90e['error'][_0xc4f7('0x12')]);return _0x399274(_0x3dc90e['error'][_0xc4f7('0x12')]);}else{logger[_0xc4f7('0xb')]('JscriptyQuestionReport,\x20%s,\x20%s',_0x529e0d,_0xc4f7('0xc'));_0x399274(_0x3dc90e[_0xc4f7('0x13')][_0xc4f7('0x12')]);}})[_0xc4f7('0x14')](function(_0xc913f){logger[_0xc4f7('0xf')]('JscriptyQuestionReport,\x20%s,\x20%s',_0x529e0d,_0xc913f);_0x2aa1d2(_0xc913f);});});}
\ No newline at end of file
+var _0x917f=['rpc','../../config/environment','jayson/promise','client','request','then','info','JscriptyQuestionReport,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger'];(function(_0x13ba23,_0x3b6f56){var _0x36d7f3=function(_0x52419d){while(--_0x52419d){_0x13ba23['push'](_0x13ba23['shift']());}};_0x36d7f3(++_0x3b6f56);}(_0x917f,0x1ae));var _0xf917=function(_0x946dfa,_0xffc3a3){_0x946dfa=_0x946dfa-0x0;var _0x2e4f7a=_0x917f[_0x946dfa];return _0x2e4f7a;};'use strict';var _=require('lodash');var util=require(_0xf917('0x0'));var moment=require(_0xf917('0x1'));var BPromise=require(_0xf917('0x2'));var rs=require(_0xf917('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xf917('0x4'))['db'];var utils=require(_0xf917('0x5'));var logger=require(_0xf917('0x6'))(_0xf917('0x7'));var config=require(_0xf917('0x8'));var jayson=require(_0xf917('0x9'));var client=jayson[_0xf917('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x2febc0,_0x7083c9,_0x4ad398){return new BPromise(function(_0x20eb21,_0x20f713){return client[_0xf917('0xb')](_0x2febc0,_0x4ad398)[_0xf917('0xc')](function(_0x2adc8c){logger[_0xf917('0xd')](_0xf917('0xe'),_0x7083c9,_0xf917('0xf'));logger[_0xf917('0x10')]('JscriptyQuestionReport,\x20%s,\x20%s,\x20%s',_0x7083c9,_0xf917('0xf'),JSON[_0xf917('0x11')](_0x2adc8c));if(_0x2adc8c[_0xf917('0x12')]){if(_0x2adc8c[_0xf917('0x12')][_0xf917('0x13')]===0x1f4){logger[_0xf917('0x12')]('JscriptyQuestionReport,\x20%s,\x20%s',_0x7083c9,_0x2adc8c[_0xf917('0x12')][_0xf917('0x14')]);return _0x20f713(_0x2adc8c[_0xf917('0x12')]['message']);}logger[_0xf917('0x12')](_0xf917('0xe'),_0x7083c9,_0x2adc8c[_0xf917('0x12')][_0xf917('0x14')]);return _0x20eb21(_0x2adc8c[_0xf917('0x12')][_0xf917('0x14')]);}else{logger['info']('JscriptyQuestionReport,\x20%s,\x20%s',_0x7083c9,'request\x20sent');_0x20eb21(_0x2adc8c[_0xf917('0x15')][_0xf917('0x14')]);}})[_0xf917('0x16')](function(_0xc9a769){logger[_0xf917('0x12')](_0xf917('0xe'),_0x7083c9,_0xc9a769);_0x20f713(_0xc9a769);});});}
\ No newline at end of file