Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / analyticDefaultReport / analyticDefaultReport.rpc.js
index cf16b2e..17eeec8 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 _0x8f22=['../../config/environment','request','then','info','AnalyticDefaultReport,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc'];(function(_0xc9527b,_0x56da87){var _0x453cae=function(_0x24df7b){while(--_0x24df7b){_0xc9527b['push'](_0xc9527b['shift']());}};_0x453cae(++_0x56da87);}(_0x8f22,0x75));var _0x28f2=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0x8f22[_0x42cae2];return _0x5f256f;};'use strict';var _=require(_0x28f2('0x0'));var util=require(_0x28f2('0x1'));var moment=require(_0x28f2('0x2'));var BPromise=require(_0x28f2('0x3'));var rs=require(_0x28f2('0x4'));var fs=require('fs');var Redis=require(_0x28f2('0x5'));var db=require(_0x28f2('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0x28f2('0x7'))(_0x28f2('0x8'));var config=require(_0x28f2('0x9'));var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x364cda,_0x64e1fb,_0x2a5055){return new BPromise(function(_0x3961fc,_0x4d69a9){return client[_0x28f2('0xa')](_0x364cda,_0x2a5055)[_0x28f2('0xb')](function(_0x46a0a2){logger[_0x28f2('0xc')](_0x28f2('0xd'),_0x64e1fb,_0x28f2('0xe'));logger[_0x28f2('0xf')]('AnalyticDefaultReport,\x20%s,\x20%s,\x20%s',_0x64e1fb,_0x28f2('0xe'),JSON[_0x28f2('0x10')](_0x46a0a2));if(_0x46a0a2['error']){if(_0x46a0a2[_0x28f2('0x11')][_0x28f2('0x12')]===0x1f4){logger[_0x28f2('0x11')](_0x28f2('0xd'),_0x64e1fb,_0x46a0a2['error'][_0x28f2('0x13')]);return _0x4d69a9(_0x46a0a2[_0x28f2('0x11')][_0x28f2('0x13')]);}logger['error']('AnalyticDefaultReport,\x20%s,\x20%s',_0x64e1fb,_0x46a0a2['error'][_0x28f2('0x13')]);return _0x3961fc(_0x46a0a2['error'][_0x28f2('0x13')]);}else{logger['info'](_0x28f2('0xd'),_0x64e1fb,'request\x20sent');_0x3961fc(_0x46a0a2['result'][_0x28f2('0x13')]);}})[_0x28f2('0x14')](function(_0x210c1c){logger[_0x28f2('0x11')](_0x28f2('0xd'),_0x64e1fb,_0x210c1c);_0x4d69a9(_0x210c1c);});});}
\ No newline at end of file