Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / analyticExtractedReport / analyticExtractedReport.rpc.js
index 9c65f92..dec33dc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3bc0=['../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','info','debug','AnalyticExtractedReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','AnalyticExtractedReport,\x20%s,\x20%s','message','result','lodash','util','moment','bluebird','randomstring','ioredis'];(function(_0x580e99,_0x32049e){var _0x217605=function(_0x2ddc3f){while(--_0x2ddc3f){_0x580e99['push'](_0x580e99['shift']());}};_0x217605(++_0x32049e);}(_0x3bc0,0xa2));var _0x03bc=function(_0x42bdad,_0x12836c){_0x42bdad=_0x42bdad-0x0;var _0x122626=_0x3bc0[_0x42bdad];return _0x122626;};'use strict';var _=require(_0x03bc('0x0'));var util=require(_0x03bc('0x1'));var moment=require(_0x03bc('0x2'));var BPromise=require(_0x03bc('0x3'));var rs=require(_0x03bc('0x4'));var fs=require('fs');var Redis=require(_0x03bc('0x5'));var db=require(_0x03bc('0x6'))['db'];var utils=require(_0x03bc('0x7'));var logger=require(_0x03bc('0x8'))(_0x03bc('0x9'));var config=require(_0x03bc('0xa'));var jayson=require(_0x03bc('0xb'));var client=jayson['client'][_0x03bc('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x2d5c65,_0x19e04c,_0x13377a){return new BPromise(function(_0x39a767,_0x4db123){return client[_0x03bc('0xd')](_0x2d5c65,_0x13377a)['then'](function(_0x2a5f6b){logger[_0x03bc('0xe')]('AnalyticExtractedReport,\x20%s,\x20%s',_0x19e04c,'request\x20sent');logger[_0x03bc('0xf')](_0x03bc('0x10'),_0x19e04c,_0x03bc('0x11'),JSON[_0x03bc('0x12')](_0x2a5f6b));if(_0x2a5f6b[_0x03bc('0x13')]){if(_0x2a5f6b[_0x03bc('0x13')][_0x03bc('0x14')]===0x1f4){logger[_0x03bc('0x13')](_0x03bc('0x15'),_0x19e04c,_0x2a5f6b[_0x03bc('0x13')][_0x03bc('0x16')]);return _0x4db123(_0x2a5f6b['error'][_0x03bc('0x16')]);}logger[_0x03bc('0x13')]('AnalyticExtractedReport,\x20%s,\x20%s',_0x19e04c,_0x2a5f6b[_0x03bc('0x13')]['message']);return _0x39a767(_0x2a5f6b['error'][_0x03bc('0x16')]);}else{logger[_0x03bc('0xe')](_0x03bc('0x15'),_0x19e04c,_0x03bc('0x11'));_0x39a767(_0x2a5f6b[_0x03bc('0x17')][_0x03bc('0x16')]);}})['catch'](function(_0x3ffa45){logger[_0x03bc('0x13')](_0x03bc('0x15'),_0x19e04c,_0x3ffa45);_0x4db123(_0x3ffa45);});});}
\ No newline at end of file
+var _0xc35d=['message','catch','lodash','util','moment','randomstring','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','http','request','info','AnalyticExtractedReport,\x20%s,\x20%s','request\x20sent','AnalyticExtractedReport,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x103e39,_0x7db66){var _0x3e95c3=function(_0x10b2af){while(--_0x10b2af){_0x103e39['push'](_0x103e39['shift']());}};_0x3e95c3(++_0x7db66);}(_0xc35d,0x12e));var _0xdc35=function(_0x26a53e,_0x1b83f5){_0x26a53e=_0x26a53e-0x0;var _0x328de0=_0xc35d[_0x26a53e];return _0x328de0;};'use strict';var _=require(_0xdc35('0x0'));var util=require(_0xdc35('0x1'));var moment=require(_0xdc35('0x2'));var BPromise=require('bluebird');var rs=require(_0xdc35('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xdc35('0x4'))['db'];var utils=require(_0xdc35('0x5'));var logger=require('../../config/logger')(_0xdc35('0x6'));var config=require(_0xdc35('0x7'));var jayson=require(_0xdc35('0x8'));var client=jayson['client'][_0xdc35('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x23cdff,_0x1aeb54,_0x56583c){return new BPromise(function(_0xe4b441,_0x1bb16d){return client[_0xdc35('0xa')](_0x23cdff,_0x56583c)['then'](function(_0x1e9d54){logger[_0xdc35('0xb')](_0xdc35('0xc'),_0x1aeb54,_0xdc35('0xd'));logger['debug'](_0xdc35('0xe'),_0x1aeb54,_0xdc35('0xd'),JSON[_0xdc35('0xf')](_0x1e9d54));if(_0x1e9d54[_0xdc35('0x10')]){if(_0x1e9d54['error'][_0xdc35('0x11')]===0x1f4){logger['error'](_0xdc35('0xc'),_0x1aeb54,_0x1e9d54[_0xdc35('0x10')][_0xdc35('0x12')]);return _0x1bb16d(_0x1e9d54[_0xdc35('0x10')][_0xdc35('0x12')]);}logger[_0xdc35('0x10')](_0xdc35('0xc'),_0x1aeb54,_0x1e9d54['error'][_0xdc35('0x12')]);return _0xe4b441(_0x1e9d54[_0xdc35('0x10')][_0xdc35('0x12')]);}else{logger['info'](_0xdc35('0xc'),_0x1aeb54,_0xdc35('0xd'));_0xe4b441(_0x1e9d54['result'][_0xdc35('0x12')]);}})[_0xdc35('0x13')](function(_0x43b3b3){logger[_0xdc35('0x10')](_0xdc35('0xc'),_0x1aeb54,_0x43b3b3);_0x1bb16d(_0x43b3b3);});});}
\ No newline at end of file