Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / analyticExtractedReport / analyticExtractedReport.rpc.js
index 0072b42..8ab6924 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 _0x9ae6=['http','request','then','AnalyticExtractedReport,\x20%s,\x20%s','request\x20sent','AnalyticExtractedReport,\x20%s,\x20%s,\x20%s','stringify','error','message','catch','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client'];(function(_0x26d6d9,_0x431cb8){var _0x1b4875=function(_0x41111f){while(--_0x41111f){_0x26d6d9['push'](_0x26d6d9['shift']());}};_0x1b4875(++_0x431cb8);}(_0x9ae6,0xe6));var _0x69ae=function(_0x15d285,_0x5b85ef){_0x15d285=_0x15d285-0x0;var _0x6d556d=_0x9ae6[_0x15d285];return _0x6d556d;};'use strict';var _=require(_0x69ae('0x0'));var util=require('util');var moment=require(_0x69ae('0x1'));var BPromise=require(_0x69ae('0x2'));var rs=require(_0x69ae('0x3'));var fs=require('fs');var Redis=require(_0x69ae('0x4'));var db=require(_0x69ae('0x5'))['db'];var utils=require(_0x69ae('0x6'));var logger=require(_0x69ae('0x7'))(_0x69ae('0x8'));var config=require(_0x69ae('0x9'));var jayson=require(_0x69ae('0xa'));var client=jayson[_0x69ae('0xb')][_0x69ae('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x32256,_0x5471d0,_0x131b21){return new BPromise(function(_0xbc09d9,_0x30a021){return client[_0x69ae('0xd')](_0x32256,_0x131b21)[_0x69ae('0xe')](function(_0x322338){logger['info'](_0x69ae('0xf'),_0x5471d0,_0x69ae('0x10'));logger['debug'](_0x69ae('0x11'),_0x5471d0,'request\x20sent',JSON[_0x69ae('0x12')](_0x322338));if(_0x322338[_0x69ae('0x13')]){if(_0x322338[_0x69ae('0x13')]['code']===0x1f4){logger['error'](_0x69ae('0xf'),_0x5471d0,_0x322338[_0x69ae('0x13')][_0x69ae('0x14')]);return _0x30a021(_0x322338[_0x69ae('0x13')][_0x69ae('0x14')]);}logger[_0x69ae('0x13')]('AnalyticExtractedReport,\x20%s,\x20%s',_0x5471d0,_0x322338[_0x69ae('0x13')][_0x69ae('0x14')]);return _0xbc09d9(_0x322338[_0x69ae('0x13')][_0x69ae('0x14')]);}else{logger['info'](_0x69ae('0xf'),_0x5471d0,_0x69ae('0x10'));_0xbc09d9(_0x322338['result']['message']);}})[_0x69ae('0x15')](function(_0xdb2e14){logger['error'](_0x69ae('0xf'),_0x5471d0,_0xdb2e14);_0x30a021(_0xdb2e14);});});}
\ No newline at end of file