Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / analyticDefaultReport / analyticDefaultReport.rpc.js
index b3fcc27..dbd1850 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2116=['AnalyticDefaultReport,\x20%s,\x20%s','request\x20sent','debug','AnalyticDefaultReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','catch','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then'];(function(_0x2087f8,_0x431471){var _0x4b6c44=function(_0x5806b7){while(--_0x5806b7){_0x2087f8['push'](_0x2087f8['shift']());}};_0x4b6c44(++_0x431471);}(_0x2116,0x67));var _0x6211=function(_0x2442dd,_0x269ded){_0x2442dd=_0x2442dd-0x0;var _0x9d4594=_0x2116[_0x2442dd];return _0x9d4594;};'use strict';var _=require('lodash');var util=require(_0x6211('0x0'));var moment=require('moment');var BPromise=require(_0x6211('0x1'));var rs=require(_0x6211('0x2'));var fs=require('fs');var Redis=require(_0x6211('0x3'));var db=require(_0x6211('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x6211('0x5'))(_0x6211('0x6'));var config=require(_0x6211('0x7'));var jayson=require(_0x6211('0x8'));var client=jayson['client'][_0x6211('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x57f7e7,_0x2355c7,_0x320562){return new BPromise(function(_0x365e65,_0x31914a){return client[_0x6211('0xa')](_0x57f7e7,_0x320562)[_0x6211('0xb')](function(_0x10bb82){logger['info'](_0x6211('0xc'),_0x2355c7,_0x6211('0xd'));logger[_0x6211('0xe')](_0x6211('0xf'),_0x2355c7,_0x6211('0xd'),JSON[_0x6211('0x10')](_0x10bb82));if(_0x10bb82[_0x6211('0x11')]){if(_0x10bb82['error'][_0x6211('0x12')]===0x1f4){logger['error'](_0x6211('0xc'),_0x2355c7,_0x10bb82[_0x6211('0x11')][_0x6211('0x13')]);return _0x31914a(_0x10bb82['error'][_0x6211('0x13')]);}logger[_0x6211('0x11')](_0x6211('0xc'),_0x2355c7,_0x10bb82['error']['message']);return _0x365e65(_0x10bb82[_0x6211('0x11')][_0x6211('0x13')]);}else{logger[_0x6211('0x14')](_0x6211('0xc'),_0x2355c7,_0x6211('0xd'));_0x365e65(_0x10bb82[_0x6211('0x15')][_0x6211('0x13')]);}})[_0x6211('0x16')](function(_0x5b64e9){logger[_0x6211('0x11')](_0x6211('0xc'),_0x2355c7,_0x5b64e9);_0x31914a(_0x5b64e9);});});}
\ No newline at end of file
+var _0x9f79=['AnalyticDefaultReport,\x20%s,\x20%s','debug','AnalyticDefaultReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info'];(function(_0x46a9a4,_0x537b75){var _0x49765c=function(_0x3c0a6e){while(--_0x3c0a6e){_0x46a9a4['push'](_0x46a9a4['shift']());}};_0x49765c(++_0x537b75);}(_0x9f79,0x169));var _0x99f7=function(_0x1f53f0,_0x11ef35){_0x1f53f0=_0x1f53f0-0x0;var _0xe4da66=_0x9f79[_0x1f53f0];return _0xe4da66;};'use strict';var _=require('lodash');var util=require('util');var moment=require('moment');var BPromise=require(_0x99f7('0x0'));var rs=require(_0x99f7('0x1'));var fs=require('fs');var Redis=require(_0x99f7('0x2'));var db=require('../../mysqldb')['db'];var utils=require(_0x99f7('0x3'));var logger=require(_0x99f7('0x4'))(_0x99f7('0x5'));var config=require(_0x99f7('0x6'));var jayson=require(_0x99f7('0x7'));var client=jayson[_0x99f7('0x8')][_0x99f7('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x36fa11,_0x2f0bd0,_0x130673){return new BPromise(function(_0x347b64,_0x56f36d){return client[_0x99f7('0xa')](_0x36fa11,_0x130673)[_0x99f7('0xb')](function(_0x4404ad){logger[_0x99f7('0xc')](_0x99f7('0xd'),_0x2f0bd0,'request\x20sent');logger[_0x99f7('0xe')](_0x99f7('0xf'),_0x2f0bd0,_0x99f7('0x10'),JSON[_0x99f7('0x11')](_0x4404ad));if(_0x4404ad[_0x99f7('0x12')]){if(_0x4404ad[_0x99f7('0x12')]['code']===0x1f4){logger[_0x99f7('0x12')](_0x99f7('0xd'),_0x2f0bd0,_0x4404ad[_0x99f7('0x12')][_0x99f7('0x13')]);return _0x56f36d(_0x4404ad[_0x99f7('0x12')][_0x99f7('0x13')]);}logger['error']('AnalyticDefaultReport,\x20%s,\x20%s',_0x2f0bd0,_0x4404ad[_0x99f7('0x12')][_0x99f7('0x13')]);return _0x347b64(_0x4404ad[_0x99f7('0x12')][_0x99f7('0x13')]);}else{logger[_0x99f7('0xc')](_0x99f7('0xd'),_0x2f0bd0,_0x99f7('0x10'));_0x347b64(_0x4404ad[_0x99f7('0x14')][_0x99f7('0x13')]);}})[_0x99f7('0x15')](function(_0x33e53d){logger[_0x99f7('0x12')](_0x99f7('0xd'),_0x2f0bd0,_0x33e53d);_0x56f36d(_0x33e53d);});});}
\ No newline at end of file