Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / analyticExtractedReport / analyticExtractedReport.rpc.js
index 28c3510..ddbb7a6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xac96=['moment','bluebird','randomstring','ioredis','../../config/utils','../../config/environment','jayson/promise','client','http','then','AnalyticExtractedReport,\x20%s,\x20%s','request\x20sent','debug','AnalyticExtractedReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','catch','util'];(function(_0x4edeae,_0x9399fa){var _0x184c1c=function(_0x4f6c4e){while(--_0x4f6c4e){_0x4edeae['push'](_0x4edeae['shift']());}};_0x184c1c(++_0x9399fa);}(_0xac96,0x149));var _0x6ac9=function(_0x1f3063,_0x238740){_0x1f3063=_0x1f3063-0x0;var _0x562471=_0xac96[_0x1f3063];return _0x562471;};'use strict';var _=require('lodash');var util=require(_0x6ac9('0x0'));var moment=require(_0x6ac9('0x1'));var BPromise=require(_0x6ac9('0x2'));var rs=require(_0x6ac9('0x3'));var fs=require('fs');var Redis=require(_0x6ac9('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x6ac9('0x5'));var logger=require('../../config/logger')('rpc');var config=require(_0x6ac9('0x6'));var jayson=require(_0x6ac9('0x7'));var client=jayson[_0x6ac9('0x8')][_0x6ac9('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x16519f,_0x19286b,_0x53d772){return new BPromise(function(_0x24775e,_0x2817f2){return client['request'](_0x16519f,_0x53d772)[_0x6ac9('0xa')](function(_0x479dce){logger['info'](_0x6ac9('0xb'),_0x19286b,_0x6ac9('0xc'));logger[_0x6ac9('0xd')](_0x6ac9('0xe'),_0x19286b,_0x6ac9('0xc'),JSON[_0x6ac9('0xf')](_0x479dce));if(_0x479dce[_0x6ac9('0x10')]){if(_0x479dce[_0x6ac9('0x10')][_0x6ac9('0x11')]===0x1f4){logger[_0x6ac9('0x10')](_0x6ac9('0xb'),_0x19286b,_0x479dce[_0x6ac9('0x10')][_0x6ac9('0x12')]);return _0x2817f2(_0x479dce[_0x6ac9('0x10')][_0x6ac9('0x12')]);}logger[_0x6ac9('0x10')]('AnalyticExtractedReport,\x20%s,\x20%s',_0x19286b,_0x479dce['error']['message']);return _0x24775e(_0x479dce['error'][_0x6ac9('0x12')]);}else{logger[_0x6ac9('0x13')](_0x6ac9('0xb'),_0x19286b,_0x6ac9('0xc'));_0x24775e(_0x479dce[_0x6ac9('0x14')][_0x6ac9('0x12')]);}})[_0x6ac9('0x15')](function(_0x1d106d){logger[_0x6ac9('0x10')]('AnalyticExtractedReport,\x20%s,\x20%s',_0x19286b,_0x1d106d);_0x2817f2(_0x1d106d);});});}
\ No newline at end of file
+var _0x2dac=['error','code','message','result','catch','lodash','util','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','then','info','AnalyticExtractedReport,\x20%s,\x20%s','request\x20sent','debug','AnalyticExtractedReport,\x20%s,\x20%s,\x20%s'];(function(_0x170438,_0x5271ee){var _0x356f06=function(_0x423cc6){while(--_0x423cc6){_0x170438['push'](_0x170438['shift']());}};_0x356f06(++_0x5271ee);}(_0x2dac,0x98));var _0xc2da=function(_0x5f0c66,_0x25e20c){_0x5f0c66=_0x5f0c66-0x0;var _0x5555ac=_0x2dac[_0x5f0c66];return _0x5555ac;};'use strict';var _=require(_0xc2da('0x0'));var util=require(_0xc2da('0x1'));var moment=require('moment');var BPromise=require(_0xc2da('0x2'));var rs=require(_0xc2da('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xc2da('0x4'))['db'];var utils=require(_0xc2da('0x5'));var logger=require(_0xc2da('0x6'))('rpc');var config=require(_0xc2da('0x7'));var jayson=require(_0xc2da('0x8'));var client=jayson[_0xc2da('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x794d4c,_0x2c04b7,_0x430061){return new BPromise(function(_0x5ddb53,_0x5765fe){return client['request'](_0x794d4c,_0x430061)[_0xc2da('0xa')](function(_0x4e8a99){logger[_0xc2da('0xb')](_0xc2da('0xc'),_0x2c04b7,_0xc2da('0xd'));logger[_0xc2da('0xe')](_0xc2da('0xf'),_0x2c04b7,_0xc2da('0xd'),JSON['stringify'](_0x4e8a99));if(_0x4e8a99[_0xc2da('0x10')]){if(_0x4e8a99[_0xc2da('0x10')][_0xc2da('0x11')]===0x1f4){logger[_0xc2da('0x10')](_0xc2da('0xc'),_0x2c04b7,_0x4e8a99[_0xc2da('0x10')][_0xc2da('0x12')]);return _0x5765fe(_0x4e8a99[_0xc2da('0x10')][_0xc2da('0x12')]);}logger[_0xc2da('0x10')](_0xc2da('0xc'),_0x2c04b7,_0x4e8a99[_0xc2da('0x10')]['message']);return _0x5ddb53(_0x4e8a99[_0xc2da('0x10')][_0xc2da('0x12')]);}else{logger[_0xc2da('0xb')]('AnalyticExtractedReport,\x20%s,\x20%s',_0x2c04b7,'request\x20sent');_0x5ddb53(_0x4e8a99[_0xc2da('0x13')][_0xc2da('0x12')]);}})[_0xc2da('0x14')](function(_0x165434){logger[_0xc2da('0x10')](_0xc2da('0xc'),_0x2c04b7,_0x165434);_0x5765fe(_0x165434);});});}
\ No newline at end of file