Built motion from commit 43538d75.|2.5.35
[motion2.git] / server / api / analyticExtractedReport / analyticExtractedReport.rpc.js
index 51f019e..52f55c7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xed78=['ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','AnalyticExtractedReport,\x20%s,\x20%s','request\x20sent','debug','AnalyticExtractedReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','util','moment','bluebird','randomstring'];(function(_0x12dfa9,_0x4a3b7a){var _0x577537=function(_0x527e7e){while(--_0x527e7e){_0x12dfa9['push'](_0x12dfa9['shift']());}};_0x577537(++_0x4a3b7a);}(_0xed78,0x7d));var _0x8ed7=function(_0x189a63,_0x5cb364){_0x189a63=_0x189a63-0x0;var _0x586683=_0xed78[_0x189a63];return _0x586683;};'use strict';var _=require(_0x8ed7('0x0'));var util=require(_0x8ed7('0x1'));var moment=require(_0x8ed7('0x2'));var BPromise=require(_0x8ed7('0x3'));var rs=require(_0x8ed7('0x4'));var fs=require('fs');var Redis=require(_0x8ed7('0x5'));var db=require(_0x8ed7('0x6'))['db'];var utils=require(_0x8ed7('0x7'));var logger=require(_0x8ed7('0x8'))(_0x8ed7('0x9'));var config=require(_0x8ed7('0xa'));var jayson=require(_0x8ed7('0xb'));var client=jayson[_0x8ed7('0xc')][_0x8ed7('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x3c3de4,_0xdda2db,_0x4a258b){return new BPromise(function(_0x274dee,_0x34784e){return client[_0x8ed7('0xe')](_0x3c3de4,_0x4a258b)[_0x8ed7('0xf')](function(_0x54b1ee){logger[_0x8ed7('0x10')](_0x8ed7('0x11'),_0xdda2db,_0x8ed7('0x12'));logger[_0x8ed7('0x13')](_0x8ed7('0x14'),_0xdda2db,_0x8ed7('0x12'),JSON[_0x8ed7('0x15')](_0x54b1ee));if(_0x54b1ee[_0x8ed7('0x16')]){if(_0x54b1ee[_0x8ed7('0x16')][_0x8ed7('0x17')]===0x1f4){logger['error'](_0x8ed7('0x11'),_0xdda2db,_0x54b1ee['error'][_0x8ed7('0x18')]);return _0x34784e(_0x54b1ee['error']['message']);}logger[_0x8ed7('0x16')](_0x8ed7('0x11'),_0xdda2db,_0x54b1ee['error']['message']);return _0x274dee(_0x54b1ee[_0x8ed7('0x16')]['message']);}else{logger['info']('AnalyticExtractedReport,\x20%s,\x20%s',_0xdda2db,'request\x20sent');_0x274dee(_0x54b1ee['result'][_0x8ed7('0x18')]);}})[_0x8ed7('0x19')](function(_0xfc032f){logger[_0x8ed7('0x16')]('AnalyticExtractedReport,\x20%s,\x20%s',_0xdda2db,_0xfc032f);_0x34784e(_0xfc032f);});});}
\ No newline at end of file
+var _0xce86=['../../config/environment','jayson/promise','http','debug','AnalyticExtractedReport,\x20%s,\x20%s,\x20%s','stringify','error','code','AnalyticExtractedReport,\x20%s,\x20%s','message','info','result','lodash','util','moment','bluebird','randomstring','../../config/utils','rpc'];(function(_0x1acc2d,_0x597696){var _0xabfa6d=function(_0x41e83c){while(--_0x41e83c){_0x1acc2d['push'](_0x1acc2d['shift']());}};_0xabfa6d(++_0x597696);}(_0xce86,0x19b));var _0x6ce8=function(_0x55c00d,_0x520cb6){_0x55c00d=_0x55c00d-0x0;var _0x254a8f=_0xce86[_0x55c00d];return _0x254a8f;};'use strict';var _=require(_0x6ce8('0x0'));var util=require(_0x6ce8('0x1'));var moment=require(_0x6ce8('0x2'));var BPromise=require(_0x6ce8('0x3'));var rs=require(_0x6ce8('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x6ce8('0x5'));var logger=require('../../config/logger')(_0x6ce8('0x6'));var config=require(_0x6ce8('0x7'));var jayson=require(_0x6ce8('0x8'));var client=jayson['client'][_0x6ce8('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x5cf407,_0x425595,_0x381d00){return new BPromise(function(_0x82ee56,_0x22036e){return client['request'](_0x5cf407,_0x381d00)['then'](function(_0x2d4aae){logger['info']('AnalyticExtractedReport,\x20%s,\x20%s',_0x425595,'request\x20sent');logger[_0x6ce8('0xa')](_0x6ce8('0xb'),_0x425595,'request\x20sent',JSON[_0x6ce8('0xc')](_0x2d4aae));if(_0x2d4aae[_0x6ce8('0xd')]){if(_0x2d4aae['error'][_0x6ce8('0xe')]===0x1f4){logger[_0x6ce8('0xd')](_0x6ce8('0xf'),_0x425595,_0x2d4aae[_0x6ce8('0xd')][_0x6ce8('0x10')]);return _0x22036e(_0x2d4aae[_0x6ce8('0xd')]['message']);}logger[_0x6ce8('0xd')](_0x6ce8('0xf'),_0x425595,_0x2d4aae['error'][_0x6ce8('0x10')]);return _0x82ee56(_0x2d4aae['error']['message']);}else{logger[_0x6ce8('0x11')](_0x6ce8('0xf'),_0x425595,'request\x20sent');_0x82ee56(_0x2d4aae[_0x6ce8('0x12')][_0x6ce8('0x10')]);}})['catch'](function(_0xf5783f){logger[_0x6ce8('0xd')](_0x6ce8('0xf'),_0x425595,_0xf5783f);_0x22036e(_0xf5783f);});});}
\ No newline at end of file