Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / analyticTreeReport / analyticTreeReport.rpc.js
index 0c714b5..231269a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7c5d=['../../mysqldb','../../config/logger','rpc','http','request','then','info','request\x20sent','stringify','error','AnalyticTreeReport,\x20%s,\x20%s','message','result','catch','moment','bluebird','randomstring','ioredis'];(function(_0x3c9c2e,_0x1e7d40){var _0x269196=function(_0x1cb3c7){while(--_0x1cb3c7){_0x3c9c2e['push'](_0x3c9c2e['shift']());}};_0x269196(++_0x1e7d40);}(_0x7c5d,0xb0));var _0xd7c5=function(_0x5644aa,_0x44fbd4){_0x5644aa=_0x5644aa-0x0;var _0x1d4024=_0x7c5d[_0x5644aa];return _0x1d4024;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xd7c5('0x0'));var BPromise=require(_0xd7c5('0x1'));var rs=require(_0xd7c5('0x2'));var fs=require('fs');var Redis=require(_0xd7c5('0x3'));var db=require(_0xd7c5('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0xd7c5('0x5'))(_0xd7c5('0x6'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson['client'][_0xd7c5('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x1a0629,_0x17bf07,_0x1f558a){return new BPromise(function(_0xc28415,_0x21dc59){return client[_0xd7c5('0x8')](_0x1a0629,_0x1f558a)[_0xd7c5('0x9')](function(_0x106548){logger[_0xd7c5('0xa')]('AnalyticTreeReport,\x20%s,\x20%s',_0x17bf07,_0xd7c5('0xb'));logger['debug']('AnalyticTreeReport,\x20%s,\x20%s,\x20%s',_0x17bf07,'request\x20sent',JSON[_0xd7c5('0xc')](_0x106548));if(_0x106548[_0xd7c5('0xd')]){if(_0x106548[_0xd7c5('0xd')]['code']===0x1f4){logger[_0xd7c5('0xd')](_0xd7c5('0xe'),_0x17bf07,_0x106548['error'][_0xd7c5('0xf')]);return _0x21dc59(_0x106548['error']['message']);}logger['error'](_0xd7c5('0xe'),_0x17bf07,_0x106548[_0xd7c5('0xd')][_0xd7c5('0xf')]);return _0xc28415(_0x106548[_0xd7c5('0xd')]['message']);}else{logger['info']('AnalyticTreeReport,\x20%s,\x20%s',_0x17bf07,_0xd7c5('0xb'));_0xc28415(_0x106548[_0xd7c5('0x10')]['message']);}})[_0xd7c5('0x11')](function(_0x10d184){logger[_0xd7c5('0xd')](_0xd7c5('0xe'),_0x17bf07,_0x10d184);_0x21dc59(_0x10d184);});});}
\ No newline at end of file
+var _0x5f2f=['lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/environment','jayson/promise','client','http','request','info','AnalyticTreeReport,\x20%s,\x20%s','debug','stringify','error','code','message','request\x20sent','result','catch'];(function(_0x54d525,_0x1733ac){var _0x292319=function(_0x1f6fe4){while(--_0x1f6fe4){_0x54d525['push'](_0x54d525['shift']());}};_0x292319(++_0x1733ac);}(_0x5f2f,0x73));var _0xf5f2=function(_0x65b059,_0xcb5a8a){_0x65b059=_0x65b059-0x0;var _0x25bd8c=_0x5f2f[_0x65b059];return _0x25bd8c;};'use strict';var _=require(_0xf5f2('0x0'));var util=require(_0xf5f2('0x1'));var moment=require(_0xf5f2('0x2'));var BPromise=require(_0xf5f2('0x3'));var rs=require(_0xf5f2('0x4'));var fs=require('fs');var Redis=require(_0xf5f2('0x5'));var db=require(_0xf5f2('0x6'))['db'];var utils=require(_0xf5f2('0x7'));var logger=require('../../config/logger')('rpc');var config=require(_0xf5f2('0x8'));var jayson=require(_0xf5f2('0x9'));var client=jayson[_0xf5f2('0xa')][_0xf5f2('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x3133bc,_0x473100,_0x5907aa){return new BPromise(function(_0x466882,_0x46cd9c){return client[_0xf5f2('0xc')](_0x3133bc,_0x5907aa)['then'](function(_0x375da4){logger[_0xf5f2('0xd')](_0xf5f2('0xe'),_0x473100,'request\x20sent');logger[_0xf5f2('0xf')]('AnalyticTreeReport,\x20%s,\x20%s,\x20%s',_0x473100,'request\x20sent',JSON[_0xf5f2('0x10')](_0x375da4));if(_0x375da4[_0xf5f2('0x11')]){if(_0x375da4['error'][_0xf5f2('0x12')]===0x1f4){logger[_0xf5f2('0x11')](_0xf5f2('0xe'),_0x473100,_0x375da4[_0xf5f2('0x11')][_0xf5f2('0x13')]);return _0x46cd9c(_0x375da4[_0xf5f2('0x11')]['message']);}logger[_0xf5f2('0x11')](_0xf5f2('0xe'),_0x473100,_0x375da4[_0xf5f2('0x11')][_0xf5f2('0x13')]);return _0x466882(_0x375da4[_0xf5f2('0x11')]['message']);}else{logger[_0xf5f2('0xd')](_0xf5f2('0xe'),_0x473100,_0xf5f2('0x14'));_0x466882(_0x375da4[_0xf5f2('0x15')][_0xf5f2('0x13')]);}})[_0xf5f2('0x16')](function(_0xdb61b3){logger[_0xf5f2('0x11')](_0xf5f2('0xe'),_0x473100,_0xdb61b3);_0x46cd9c(_0xdb61b3);});});}
\ No newline at end of file