Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / analyticDefaultReport / analyticDefaultReport.rpc.js
index a94b64d..dbd1850 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6146=['then','info','request\x20sent','debug','AnalyticDefaultReport,\x20%s,\x20%s,\x20%s','stringify','error','message','AnalyticDefaultReport,\x20%s,\x20%s','catch','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http'];(function(_0xeb3a3c,_0x1385db){var _0x206d22=function(_0x43494c){while(--_0x43494c){_0xeb3a3c['push'](_0xeb3a3c['shift']());}};_0x206d22(++_0x1385db);}(_0x6146,0xba));var _0x6614=function(_0x7815cd,_0x430226){_0x7815cd=_0x7815cd-0x0;var _0x3f47d5=_0x6146[_0x7815cd];return _0x3f47d5;};'use strict';var _=require(_0x6614('0x0'));var util=require('util');var moment=require(_0x6614('0x1'));var BPromise=require(_0x6614('0x2'));var rs=require(_0x6614('0x3'));var fs=require('fs');var Redis=require(_0x6614('0x4'));var db=require(_0x6614('0x5'))['db'];var utils=require(_0x6614('0x6'));var logger=require(_0x6614('0x7'))('rpc');var config=require(_0x6614('0x8'));var jayson=require(_0x6614('0x9'));var client=jayson[_0x6614('0xa')][_0x6614('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x3b158b,_0x2e84fa,_0x4116e4){return new BPromise(function(_0x209bdd,_0x9bf15){return client['request'](_0x3b158b,_0x4116e4)[_0x6614('0xc')](function(_0x267e1b){logger[_0x6614('0xd')]('AnalyticDefaultReport,\x20%s,\x20%s',_0x2e84fa,_0x6614('0xe'));logger[_0x6614('0xf')](_0x6614('0x10'),_0x2e84fa,_0x6614('0xe'),JSON[_0x6614('0x11')](_0x267e1b));if(_0x267e1b[_0x6614('0x12')]){if(_0x267e1b[_0x6614('0x12')]['code']===0x1f4){logger[_0x6614('0x12')]('AnalyticDefaultReport,\x20%s,\x20%s',_0x2e84fa,_0x267e1b[_0x6614('0x12')][_0x6614('0x13')]);return _0x9bf15(_0x267e1b[_0x6614('0x12')][_0x6614('0x13')]);}logger[_0x6614('0x12')](_0x6614('0x14'),_0x2e84fa,_0x267e1b[_0x6614('0x12')][_0x6614('0x13')]);return _0x209bdd(_0x267e1b[_0x6614('0x12')]['message']);}else{logger['info'](_0x6614('0x14'),_0x2e84fa,_0x6614('0xe'));_0x209bdd(_0x267e1b['result'][_0x6614('0x13')]);}})[_0x6614('0x15')](function(_0x3a0fee){logger['error'](_0x6614('0x14'),_0x2e84fa,_0x3a0fee);_0x9bf15(_0x3a0fee);});});}
\ 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