Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / analyticExtractedReport / analyticExtractedReport.rpc.js
index 0072b42..ddbb7a6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x655d=['request','then','info','AnalyticExtractedReport,\x20%s,\x20%s','debug','request\x20sent','stringify','error','code','message','result','catch','lodash','bluebird','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client'];(function(_0x3e5877,_0x4ffbf5){var _0x1f2a36=function(_0x68eb7e){while(--_0x68eb7e){_0x3e5877['push'](_0x3e5877['shift']());}};_0x1f2a36(++_0x4ffbf5);}(_0x655d,0x186));var _0xd655=function(_0x27af45,_0x1b57aa){_0x27af45=_0x27af45-0x0;var _0x18df21=_0x655d[_0x27af45];return _0x18df21;};'use strict';var _=require(_0xd655('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0xd655('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xd655('0x2'));var db=require('../../mysqldb')['db'];var utils=require(_0xd655('0x3'));var logger=require(_0xd655('0x4'))(_0xd655('0x5'));var config=require(_0xd655('0x6'));var jayson=require(_0xd655('0x7'));var client=jayson[_0xd655('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x51db60,_0x3a9ab2,_0x2b775f){return new BPromise(function(_0xc3228b,_0x26b9fa){return client[_0xd655('0x9')](_0x51db60,_0x2b775f)[_0xd655('0xa')](function(_0x394fd0){logger[_0xd655('0xb')](_0xd655('0xc'),_0x3a9ab2,'request\x20sent');logger[_0xd655('0xd')]('AnalyticExtractedReport,\x20%s,\x20%s,\x20%s',_0x3a9ab2,_0xd655('0xe'),JSON[_0xd655('0xf')](_0x394fd0));if(_0x394fd0[_0xd655('0x10')]){if(_0x394fd0['error'][_0xd655('0x11')]===0x1f4){logger['error']('AnalyticExtractedReport,\x20%s,\x20%s',_0x3a9ab2,_0x394fd0[_0xd655('0x10')][_0xd655('0x12')]);return _0x26b9fa(_0x394fd0[_0xd655('0x10')][_0xd655('0x12')]);}logger[_0xd655('0x10')](_0xd655('0xc'),_0x3a9ab2,_0x394fd0[_0xd655('0x10')][_0xd655('0x12')]);return _0xc3228b(_0x394fd0[_0xd655('0x10')][_0xd655('0x12')]);}else{logger[_0xd655('0xb')](_0xd655('0xc'),_0x3a9ab2,_0xd655('0xe'));_0xc3228b(_0x394fd0[_0xd655('0x13')][_0xd655('0x12')]);}})[_0xd655('0x14')](function(_0x2c33ec){logger['error'](_0xd655('0xc'),_0x3a9ab2,_0x2c33ec);_0x26b9fa(_0x2c33ec);});});}
\ 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