Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / api / analyticDefaultReport / analyticDefaultReport.rpc.js
index dd35019..194058e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x980c=['../../config/logger','rpc','../../config/environment','client','http','info','request\x20sent','debug','AnalyticDefaultReport,\x20%s,\x20%s,\x20%s','stringify','error','AnalyticDefaultReport,\x20%s,\x20%s','message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils'];(function(_0x4ea463,_0x1541b3){var _0x596aef=function(_0x22b977){while(--_0x22b977){_0x4ea463['push'](_0x4ea463['shift']());}};_0x596aef(++_0x1541b3);}(_0x980c,0x100));var _0xc980=function(_0x79b28a,_0x9a5b26){_0x79b28a=_0x79b28a-0x0;var _0x2b4798=_0x980c[_0x79b28a];return _0x2b4798;};'use strict';var _=require(_0xc980('0x0'));var util=require(_0xc980('0x1'));var moment=require(_0xc980('0x2'));var BPromise=require(_0xc980('0x3'));var rs=require(_0xc980('0x4'));var fs=require('fs');var Redis=require(_0xc980('0x5'));var db=require(_0xc980('0x6'))['db'];var utils=require(_0xc980('0x7'));var logger=require(_0xc980('0x8'))(_0xc980('0x9'));var config=require(_0xc980('0xa'));var jayson=require('jayson/promise');var client=jayson[_0xc980('0xb')][_0xc980('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x36d2dd,_0x3175e7,_0x389546){return new BPromise(function(_0x4523c0,_0x355bfa){return client['request'](_0x36d2dd,_0x389546)['then'](function(_0x5b99c8){logger[_0xc980('0xd')]('AnalyticDefaultReport,\x20%s,\x20%s',_0x3175e7,_0xc980('0xe'));logger[_0xc980('0xf')](_0xc980('0x10'),_0x3175e7,'request\x20sent',JSON[_0xc980('0x11')](_0x5b99c8));if(_0x5b99c8[_0xc980('0x12')]){if(_0x5b99c8[_0xc980('0x12')]['code']===0x1f4){logger[_0xc980('0x12')](_0xc980('0x13'),_0x3175e7,_0x5b99c8[_0xc980('0x12')][_0xc980('0x14')]);return _0x355bfa(_0x5b99c8[_0xc980('0x12')][_0xc980('0x14')]);}logger[_0xc980('0x12')](_0xc980('0x13'),_0x3175e7,_0x5b99c8[_0xc980('0x12')][_0xc980('0x14')]);return _0x4523c0(_0x5b99c8[_0xc980('0x12')][_0xc980('0x14')]);}else{logger[_0xc980('0xd')]('AnalyticDefaultReport,\x20%s,\x20%s',_0x3175e7,'request\x20sent');_0x4523c0(_0x5b99c8[_0xc980('0x15')]['message']);}})['catch'](function(_0x1d1de0){logger[_0xc980('0x12')](_0xc980('0x13'),_0x3175e7,_0x1d1de0);_0x355bfa(_0x1d1de0);});});}
\ No newline at end of file
+var _0x2f6a=['info','AnalyticDefaultReport,\x20%s,\x20%s','AnalyticDefaultReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','lodash','util','randomstring','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then'];(function(_0x5c468f,_0x2e5c25){var _0x2136b0=function(_0x56b8a4){while(--_0x56b8a4){_0x5c468f['push'](_0x5c468f['shift']());}};_0x2136b0(++_0x2e5c25);}(_0x2f6a,0xbd));var _0xa2f6=function(_0x328139,_0x21e7ad){_0x328139=_0x328139-0x0;var _0x4991c8=_0x2f6a[_0x328139];return _0x4991c8;};'use strict';var _=require(_0xa2f6('0x0'));var util=require(_0xa2f6('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xa2f6('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0xa2f6('0x3'));var logger=require(_0xa2f6('0x4'))('rpc');var config=require(_0xa2f6('0x5'));var jayson=require(_0xa2f6('0x6'));var client=jayson[_0xa2f6('0x7')][_0xa2f6('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x4a461a,_0x10a159,_0x34c998){return new BPromise(function(_0x45fafe,_0x26e942){return client[_0xa2f6('0x9')](_0x4a461a,_0x34c998)[_0xa2f6('0xa')](function(_0x50288b){logger[_0xa2f6('0xb')](_0xa2f6('0xc'),_0x10a159,'request\x20sent');logger['debug'](_0xa2f6('0xd'),_0x10a159,_0xa2f6('0xe'),JSON[_0xa2f6('0xf')](_0x50288b));if(_0x50288b[_0xa2f6('0x10')]){if(_0x50288b[_0xa2f6('0x10')][_0xa2f6('0x11')]===0x1f4){logger['error'](_0xa2f6('0xc'),_0x10a159,_0x50288b[_0xa2f6('0x10')]['message']);return _0x26e942(_0x50288b[_0xa2f6('0x10')][_0xa2f6('0x12')]);}logger[_0xa2f6('0x10')]('AnalyticDefaultReport,\x20%s,\x20%s',_0x10a159,_0x50288b[_0xa2f6('0x10')][_0xa2f6('0x12')]);return _0x45fafe(_0x50288b[_0xa2f6('0x10')][_0xa2f6('0x12')]);}else{logger[_0xa2f6('0xb')](_0xa2f6('0xc'),_0x10a159,'request\x20sent');_0x45fafe(_0x50288b[_0xa2f6('0x13')]['message']);}})['catch'](function(_0x272fcf){logger[_0xa2f6('0x10')](_0xa2f6('0xc'),_0x10a159,_0x272fcf);_0x26e942(_0x272fcf);});});}
\ No newline at end of file