Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / analyticExtractedReport / analyticExtractedReport.rpc.js
index 4c1b654..ddbb7a6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6645=['http','request','info','debug','request\x20sent','stringify','error','AnalyticExtractedReport,\x20%s,\x20%s','message','result','catch','util','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client'];(function(_0x24942b,_0x4310e2){var _0x335545=function(_0x1dd0ea){while(--_0x1dd0ea){_0x24942b['push'](_0x24942b['shift']());}};_0x335545(++_0x4310e2);}(_0x6645,0x10f));var _0x5664=function(_0x259192,_0x20e611){_0x259192=_0x259192-0x0;var _0x433680=_0x6645[_0x259192];return _0x433680;};'use strict';var _=require('lodash');var util=require(_0x5664('0x0'));var moment=require('moment');var BPromise=require(_0x5664('0x1'));var rs=require(_0x5664('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x5664('0x3'))['db'];var utils=require(_0x5664('0x4'));var logger=require(_0x5664('0x5'))('rpc');var config=require(_0x5664('0x6'));var jayson=require(_0x5664('0x7'));var client=jayson[_0x5664('0x8')][_0x5664('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x22fa59,_0x115ce0,_0x1bc2fd){return new BPromise(function(_0x13fcca,_0x4f1c37){return client[_0x5664('0xa')](_0x22fa59,_0x1bc2fd)['then'](function(_0x550b39){logger[_0x5664('0xb')]('AnalyticExtractedReport,\x20%s,\x20%s',_0x115ce0,'request\x20sent');logger[_0x5664('0xc')]('AnalyticExtractedReport,\x20%s,\x20%s,\x20%s',_0x115ce0,_0x5664('0xd'),JSON[_0x5664('0xe')](_0x550b39));if(_0x550b39[_0x5664('0xf')]){if(_0x550b39[_0x5664('0xf')]['code']===0x1f4){logger[_0x5664('0xf')](_0x5664('0x10'),_0x115ce0,_0x550b39[_0x5664('0xf')][_0x5664('0x11')]);return _0x4f1c37(_0x550b39[_0x5664('0xf')][_0x5664('0x11')]);}logger[_0x5664('0xf')](_0x5664('0x10'),_0x115ce0,_0x550b39[_0x5664('0xf')]['message']);return _0x13fcca(_0x550b39[_0x5664('0xf')]['message']);}else{logger['info'](_0x5664('0x10'),_0x115ce0,_0x5664('0xd'));_0x13fcca(_0x550b39[_0x5664('0x12')][_0x5664('0x11')]);}})[_0x5664('0x13')](function(_0x4aaa70){logger[_0x5664('0xf')](_0x5664('0x10'),_0x115ce0,_0x4aaa70);_0x4f1c37(_0x4aaa70);});});}
\ 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