Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / analyticFieldReport / analyticFieldReport.rpc.js
index 9677214..aca04d2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc5b5=['rpc','../../config/environment','jayson/promise','http','request','then','info','AnalyticFieldReport,\x20%s,\x20%s','debug','AnalyticFieldReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger'];(function(_0x3b9cb6,_0x2c01b7){var _0x28cf9e=function(_0x268d89){while(--_0x268d89){_0x3b9cb6['push'](_0x3b9cb6['shift']());}};_0x28cf9e(++_0x2c01b7);}(_0xc5b5,0x163));var _0x5c5b=function(_0x506f64,_0x395f5a){_0x506f64=_0x506f64-0x0;var _0x389fdb=_0xc5b5[_0x506f64];return _0x389fdb;};'use strict';var _=require(_0x5c5b('0x0'));var util=require(_0x5c5b('0x1'));var moment=require(_0x5c5b('0x2'));var BPromise=require(_0x5c5b('0x3'));var rs=require(_0x5c5b('0x4'));var fs=require('fs');var Redis=require(_0x5c5b('0x5'));var db=require(_0x5c5b('0x6'))['db'];var utils=require(_0x5c5b('0x7'));var logger=require(_0x5c5b('0x8'))(_0x5c5b('0x9'));var config=require(_0x5c5b('0xa'));var jayson=require(_0x5c5b('0xb'));var client=jayson['client'][_0x5c5b('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x2a3acf,_0xa7aae3,_0x139925){return new BPromise(function(_0x56ef6d,_0x40ce9c){return client[_0x5c5b('0xd')](_0x2a3acf,_0x139925)[_0x5c5b('0xe')](function(_0x53037b){logger[_0x5c5b('0xf')](_0x5c5b('0x10'),_0xa7aae3,'request\x20sent');logger[_0x5c5b('0x11')](_0x5c5b('0x12'),_0xa7aae3,_0x5c5b('0x13'),JSON[_0x5c5b('0x14')](_0x53037b));if(_0x53037b['error']){if(_0x53037b[_0x5c5b('0x15')][_0x5c5b('0x16')]===0x1f4){logger[_0x5c5b('0x15')](_0x5c5b('0x10'),_0xa7aae3,_0x53037b['error'][_0x5c5b('0x17')]);return _0x40ce9c(_0x53037b[_0x5c5b('0x15')]['message']);}logger[_0x5c5b('0x15')](_0x5c5b('0x10'),_0xa7aae3,_0x53037b['error']['message']);return _0x56ef6d(_0x53037b[_0x5c5b('0x15')][_0x5c5b('0x17')]);}else{logger[_0x5c5b('0xf')](_0x5c5b('0x10'),_0xa7aae3,_0x5c5b('0x13'));_0x56ef6d(_0x53037b[_0x5c5b('0x18')][_0x5c5b('0x17')]);}})[_0x5c5b('0x19')](function(_0x5c593a){logger['error']('AnalyticFieldReport,\x20%s,\x20%s',_0xa7aae3,_0x5c593a);_0x40ce9c(_0x5c593a);});});}
\ No newline at end of file
+var _0x0c8c=['request\x20sent','stringify','error','code','AnalyticFieldReport,\x20%s,\x20%s','message','result','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/logger','../../config/environment','jayson/promise','client','http','request','info'];(function(_0x5d9a48,_0x381bf3){var _0x46ea0f=function(_0x105920){while(--_0x105920){_0x5d9a48['push'](_0x5d9a48['shift']());}};_0x46ea0f(++_0x381bf3);}(_0x0c8c,0x6b));var _0xc0c8=function(_0x235c84,_0x159db4){_0x235c84=_0x235c84-0x0;var _0x2e49db=_0x0c8c[_0x235c84];return _0x2e49db;};'use strict';var _=require(_0xc0c8('0x0'));var util=require(_0xc0c8('0x1'));var moment=require(_0xc0c8('0x2'));var BPromise=require(_0xc0c8('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xc0c8('0x4'));var db=require(_0xc0c8('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xc0c8('0x6'))('rpc');var config=require(_0xc0c8('0x7'));var jayson=require(_0xc0c8('0x8'));var client=jayson[_0xc0c8('0x9')][_0xc0c8('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x5d546c,_0x495543,_0xad92e0){return new BPromise(function(_0x11bf94,_0x112df2){return client[_0xc0c8('0xb')](_0x5d546c,_0xad92e0)['then'](function(_0x581d2f){logger[_0xc0c8('0xc')]('AnalyticFieldReport,\x20%s,\x20%s',_0x495543,_0xc0c8('0xd'));logger['debug']('AnalyticFieldReport,\x20%s,\x20%s,\x20%s',_0x495543,_0xc0c8('0xd'),JSON[_0xc0c8('0xe')](_0x581d2f));if(_0x581d2f[_0xc0c8('0xf')]){if(_0x581d2f[_0xc0c8('0xf')][_0xc0c8('0x10')]===0x1f4){logger[_0xc0c8('0xf')](_0xc0c8('0x11'),_0x495543,_0x581d2f[_0xc0c8('0xf')][_0xc0c8('0x12')]);return _0x112df2(_0x581d2f[_0xc0c8('0xf')][_0xc0c8('0x12')]);}logger[_0xc0c8('0xf')](_0xc0c8('0x11'),_0x495543,_0x581d2f['error'][_0xc0c8('0x12')]);return _0x11bf94(_0x581d2f[_0xc0c8('0xf')]['message']);}else{logger['info'](_0xc0c8('0x11'),_0x495543,'request\x20sent');_0x11bf94(_0x581d2f[_0xc0c8('0x13')][_0xc0c8('0x12')]);}})['catch'](function(_0x33e781){logger[_0xc0c8('0xf')](_0xc0c8('0x11'),_0x495543,_0x33e781);_0x112df2(_0x33e781);});});}
\ No newline at end of file