Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / analyticFieldReport / analyticFieldReport.rpc.js
index b1d92f1..7d38d43 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1f55=['info','AnalyticFieldReport,\x20%s,\x20%s','debug','error','message','request\x20sent','result','catch','lodash','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then'];(function(_0x48910d,_0xe8d0e1){var _0x1b4c22=function(_0x4d41a6){while(--_0x4d41a6){_0x48910d['push'](_0x48910d['shift']());}};_0x1b4c22(++_0xe8d0e1);}(_0x1f55,0xb0));var _0x51f5=function(_0x285f24,_0x3bb660){_0x285f24=_0x285f24-0x0;var _0x5b614d=_0x1f55[_0x285f24];return _0x5b614d;};'use strict';var _=require(_0x51f5('0x0'));var util=require('util');var moment=require(_0x51f5('0x1'));var BPromise=require(_0x51f5('0x2'));var rs=require(_0x51f5('0x3'));var fs=require('fs');var Redis=require(_0x51f5('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x51f5('0x5'));var logger=require(_0x51f5('0x6'))(_0x51f5('0x7'));var config=require(_0x51f5('0x8'));var jayson=require(_0x51f5('0x9'));var client=jayson[_0x51f5('0xa')][_0x51f5('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x23c441,_0xfed11b,_0x30cbc1){return new BPromise(function(_0x267960,_0x314b0c){return client['request'](_0x23c441,_0x30cbc1)[_0x51f5('0xc')](function(_0x487abd){logger[_0x51f5('0xd')](_0x51f5('0xe'),_0xfed11b,'request\x20sent');logger[_0x51f5('0xf')]('AnalyticFieldReport,\x20%s,\x20%s,\x20%s',_0xfed11b,'request\x20sent',JSON['stringify'](_0x487abd));if(_0x487abd[_0x51f5('0x10')]){if(_0x487abd[_0x51f5('0x10')]['code']===0x1f4){logger['error'](_0x51f5('0xe'),_0xfed11b,_0x487abd[_0x51f5('0x10')][_0x51f5('0x11')]);return _0x314b0c(_0x487abd[_0x51f5('0x10')][_0x51f5('0x11')]);}logger[_0x51f5('0x10')](_0x51f5('0xe'),_0xfed11b,_0x487abd[_0x51f5('0x10')]['message']);return _0x267960(_0x487abd[_0x51f5('0x10')]['message']);}else{logger[_0x51f5('0xd')](_0x51f5('0xe'),_0xfed11b,_0x51f5('0x12'));_0x267960(_0x487abd[_0x51f5('0x13')][_0x51f5('0x11')]);}})[_0x51f5('0x14')](function(_0x48777a){logger[_0x51f5('0x10')]('AnalyticFieldReport,\x20%s,\x20%s',_0xfed11b,_0x48777a);_0x314b0c(_0x48777a);});});}
\ No newline at end of file
+var _0xc56f=['../../mysqldb','../../config/utils','../../config/logger','../../config/environment','client','http','request','then','AnalyticFieldReport,\x20%s,\x20%s','request\x20sent','debug','AnalyticFieldReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','moment','bluebird','randomstring','ioredis'];(function(_0x725b8e,_0xc22b48){var _0x43ac45=function(_0x46bb4a){while(--_0x46bb4a){_0x725b8e['push'](_0x725b8e['shift']());}};_0x43ac45(++_0xc22b48);}(_0xc56f,0xd8));var _0xfc56=function(_0x2763f2,_0x416af8){_0x2763f2=_0x2763f2-0x0;var _0x3ef471=_0xc56f[_0x2763f2];return _0x3ef471;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xfc56('0x0'));var BPromise=require(_0xfc56('0x1'));var rs=require(_0xfc56('0x2'));var fs=require('fs');var Redis=require(_0xfc56('0x3'));var db=require(_0xfc56('0x4'))['db'];var utils=require(_0xfc56('0x5'));var logger=require(_0xfc56('0x6'))('rpc');var config=require(_0xfc56('0x7'));var jayson=require('jayson/promise');var client=jayson[_0xfc56('0x8')][_0xfc56('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x9a3fcb,_0x82f54a,_0x4a699c){return new BPromise(function(_0x21ce4b,_0x54b9e3){return client[_0xfc56('0xa')](_0x9a3fcb,_0x4a699c)[_0xfc56('0xb')](function(_0x26c753){logger['info'](_0xfc56('0xc'),_0x82f54a,_0xfc56('0xd'));logger[_0xfc56('0xe')](_0xfc56('0xf'),_0x82f54a,_0xfc56('0xd'),JSON[_0xfc56('0x10')](_0x26c753));if(_0x26c753['error']){if(_0x26c753[_0xfc56('0x11')][_0xfc56('0x12')]===0x1f4){logger[_0xfc56('0x11')](_0xfc56('0xc'),_0x82f54a,_0x26c753['error'][_0xfc56('0x13')]);return _0x54b9e3(_0x26c753[_0xfc56('0x11')][_0xfc56('0x13')]);}logger[_0xfc56('0x11')](_0xfc56('0xc'),_0x82f54a,_0x26c753[_0xfc56('0x11')]['message']);return _0x21ce4b(_0x26c753[_0xfc56('0x11')][_0xfc56('0x13')]);}else{logger['info'](_0xfc56('0xc'),_0x82f54a,_0xfc56('0xd'));_0x21ce4b(_0x26c753[_0xfc56('0x14')]['message']);}})[_0xfc56('0x15')](function(_0x5e5496){logger[_0xfc56('0x11')]('AnalyticFieldReport,\x20%s,\x20%s',_0x82f54a,_0x5e5496);_0x54b9e3(_0x5e5496);});});}
\ No newline at end of file