Built motion from commit (unavailable).|2.5.24
[motion2.git] / server / api / analyticDefaultReport / analyticDefaultReport.rpc.js
index cf16b2e..3fabd63 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x570f=['request\x20sent','debug','stringify','error','code','message','result','catch','lodash','util','moment','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','info','AnalyticDefaultReport,\x20%s,\x20%s'];(function(_0x2f6f47,_0x399acf){var _0x3ff96f=function(_0x2f044c){while(--_0x2f044c){_0x2f6f47['push'](_0x2f6f47['shift']());}};_0x3ff96f(++_0x399acf);}(_0x570f,0x152));var _0xf570=function(_0x4eaa3e,_0x24031c){_0x4eaa3e=_0x4eaa3e-0x0;var _0x18d712=_0x570f[_0x4eaa3e];return _0x18d712;};'use strict';var _=require(_0xf570('0x0'));var util=require(_0xf570('0x1'));var moment=require(_0xf570('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xf570('0x3'));var db=require(_0xf570('0x4'))['db'];var utils=require(_0xf570('0x5'));var logger=require(_0xf570('0x6'))(_0xf570('0x7'));var config=require(_0xf570('0x8'));var jayson=require(_0xf570('0x9'));var client=jayson['client'][_0xf570('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x47c534,_0x37d1c8,_0x5910a8){return new BPromise(function(_0x2575c0,_0x5ce08f){return client[_0xf570('0xb')](_0x47c534,_0x5910a8)['then'](function(_0x19bee1){logger[_0xf570('0xc')](_0xf570('0xd'),_0x37d1c8,_0xf570('0xe'));logger[_0xf570('0xf')]('AnalyticDefaultReport,\x20%s,\x20%s,\x20%s',_0x37d1c8,_0xf570('0xe'),JSON[_0xf570('0x10')](_0x19bee1));if(_0x19bee1[_0xf570('0x11')]){if(_0x19bee1['error'][_0xf570('0x12')]===0x1f4){logger[_0xf570('0x11')](_0xf570('0xd'),_0x37d1c8,_0x19bee1['error'][_0xf570('0x13')]);return _0x5ce08f(_0x19bee1[_0xf570('0x11')][_0xf570('0x13')]);}logger[_0xf570('0x11')]('AnalyticDefaultReport,\x20%s,\x20%s',_0x37d1c8,_0x19bee1[_0xf570('0x11')][_0xf570('0x13')]);return _0x2575c0(_0x19bee1[_0xf570('0x11')][_0xf570('0x13')]);}else{logger[_0xf570('0xc')](_0xf570('0xd'),_0x37d1c8,_0xf570('0xe'));_0x2575c0(_0x19bee1[_0xf570('0x14')][_0xf570('0x13')]);}})[_0xf570('0x15')](function(_0x46a3aa){logger['error'](_0xf570('0xd'),_0x37d1c8,_0x46a3aa);_0x5ce08f(_0x46a3aa);});});}
\ No newline at end of file
+var _0x94df=['ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','AnalyticDefaultReport,\x20%s,\x20%s','request\x20sent','AnalyticDefaultReport,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','lodash','util','moment','bluebird','randomstring'];(function(_0x5d4db8,_0x4ad01b){var _0x415548=function(_0x7ae456){while(--_0x7ae456){_0x5d4db8['push'](_0x5d4db8['shift']());}};_0x415548(++_0x4ad01b);}(_0x94df,0xa3));var _0xf94d=function(_0x3df579,_0x23eac0){_0x3df579=_0x3df579-0x0;var _0x10904e=_0x94df[_0x3df579];return _0x10904e;};'use strict';var _=require(_0xf94d('0x0'));var util=require(_0xf94d('0x1'));var moment=require(_0xf94d('0x2'));var BPromise=require(_0xf94d('0x3'));var rs=require(_0xf94d('0x4'));var fs=require('fs');var Redis=require(_0xf94d('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0xf94d('0x6'));var logger=require(_0xf94d('0x7'))(_0xf94d('0x8'));var config=require(_0xf94d('0x9'));var jayson=require(_0xf94d('0xa'));var client=jayson[_0xf94d('0xb')][_0xf94d('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x18a11a,_0x1ebc19,_0xf285b5){return new BPromise(function(_0x1832e9,_0x504670){return client[_0xf94d('0xd')](_0x18a11a,_0xf285b5)[_0xf94d('0xe')](function(_0x145f5b){logger[_0xf94d('0xf')](_0xf94d('0x10'),_0x1ebc19,_0xf94d('0x11'));logger['debug'](_0xf94d('0x12'),_0x1ebc19,_0xf94d('0x11'),JSON[_0xf94d('0x13')](_0x145f5b));if(_0x145f5b[_0xf94d('0x14')]){if(_0x145f5b[_0xf94d('0x14')]['code']===0x1f4){logger['error'](_0xf94d('0x10'),_0x1ebc19,_0x145f5b[_0xf94d('0x14')][_0xf94d('0x15')]);return _0x504670(_0x145f5b[_0xf94d('0x14')][_0xf94d('0x15')]);}logger[_0xf94d('0x14')]('AnalyticDefaultReport,\x20%s,\x20%s',_0x1ebc19,_0x145f5b[_0xf94d('0x14')][_0xf94d('0x15')]);return _0x1832e9(_0x145f5b[_0xf94d('0x14')][_0xf94d('0x15')]);}else{logger[_0xf94d('0xf')](_0xf94d('0x10'),_0x1ebc19,_0xf94d('0x11'));_0x1832e9(_0x145f5b[_0xf94d('0x16')]['message']);}})[_0xf94d('0x17')](function(_0x5cd967){logger[_0xf94d('0x14')]('AnalyticDefaultReport,\x20%s,\x20%s',_0x1ebc19,_0x5cd967);_0x504670(_0x5cd967);});});}
\ No newline at end of file