Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / analyticDefaultReport / analyticDefaultReport.rpc.js
index a94b64d..090a4ab 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6146=['then','info','request\x20sent','debug','AnalyticDefaultReport,\x20%s,\x20%s,\x20%s','stringify','error','message','AnalyticDefaultReport,\x20%s,\x20%s','catch','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http'];(function(_0xeb3a3c,_0x1385db){var _0x206d22=function(_0x43494c){while(--_0x43494c){_0xeb3a3c['push'](_0xeb3a3c['shift']());}};_0x206d22(++_0x1385db);}(_0x6146,0xba));var _0x6614=function(_0x7815cd,_0x430226){_0x7815cd=_0x7815cd-0x0;var _0x3f47d5=_0x6146[_0x7815cd];return _0x3f47d5;};'use strict';var _=require(_0x6614('0x0'));var util=require('util');var moment=require(_0x6614('0x1'));var BPromise=require(_0x6614('0x2'));var rs=require(_0x6614('0x3'));var fs=require('fs');var Redis=require(_0x6614('0x4'));var db=require(_0x6614('0x5'))['db'];var utils=require(_0x6614('0x6'));var logger=require(_0x6614('0x7'))('rpc');var config=require(_0x6614('0x8'));var jayson=require(_0x6614('0x9'));var client=jayson[_0x6614('0xa')][_0x6614('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x3b158b,_0x2e84fa,_0x4116e4){return new BPromise(function(_0x209bdd,_0x9bf15){return client['request'](_0x3b158b,_0x4116e4)[_0x6614('0xc')](function(_0x267e1b){logger[_0x6614('0xd')]('AnalyticDefaultReport,\x20%s,\x20%s',_0x2e84fa,_0x6614('0xe'));logger[_0x6614('0xf')](_0x6614('0x10'),_0x2e84fa,_0x6614('0xe'),JSON[_0x6614('0x11')](_0x267e1b));if(_0x267e1b[_0x6614('0x12')]){if(_0x267e1b[_0x6614('0x12')]['code']===0x1f4){logger[_0x6614('0x12')]('AnalyticDefaultReport,\x20%s,\x20%s',_0x2e84fa,_0x267e1b[_0x6614('0x12')][_0x6614('0x13')]);return _0x9bf15(_0x267e1b[_0x6614('0x12')][_0x6614('0x13')]);}logger[_0x6614('0x12')](_0x6614('0x14'),_0x2e84fa,_0x267e1b[_0x6614('0x12')][_0x6614('0x13')]);return _0x209bdd(_0x267e1b[_0x6614('0x12')]['message']);}else{logger['info'](_0x6614('0x14'),_0x2e84fa,_0x6614('0xe'));_0x209bdd(_0x267e1b['result'][_0x6614('0x13')]);}})[_0x6614('0x15')](function(_0x3a0fee){logger['error'](_0x6614('0x14'),_0x2e84fa,_0x3a0fee);_0x9bf15(_0x3a0fee);});});}
\ No newline at end of file
+var _0x8b1b=['error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client','request','info','AnalyticDefaultReport,\x20%s,\x20%s','request\x20sent','debug','stringify'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x8b1b,0x130));var _0xb8b1=function(_0x88cd7b,_0x4c884c){_0x88cd7b=_0x88cd7b-0x0;var _0x56fcc8=_0x8b1b[_0x88cd7b];return _0x56fcc8;};'use strict';var _=require(_0xb8b1('0x0'));var util=require(_0xb8b1('0x1'));var moment=require(_0xb8b1('0x2'));var BPromise=require(_0xb8b1('0x3'));var rs=require(_0xb8b1('0x4'));var fs=require('fs');var Redis=require(_0xb8b1('0x5'));var db=require(_0xb8b1('0x6'))['db'];var utils=require(_0xb8b1('0x7'));var logger=require(_0xb8b1('0x8'))(_0xb8b1('0x9'));var config=require('../../config/environment');var jayson=require(_0xb8b1('0xa'));var client=jayson[_0xb8b1('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x359fa0,_0x4797f7,_0x3f5a1e){return new BPromise(function(_0x4e3a7c,_0x2df16b){return client[_0xb8b1('0xc')](_0x359fa0,_0x3f5a1e)['then'](function(_0xf6d8f6){logger[_0xb8b1('0xd')](_0xb8b1('0xe'),_0x4797f7,_0xb8b1('0xf'));logger[_0xb8b1('0x10')]('AnalyticDefaultReport,\x20%s,\x20%s,\x20%s',_0x4797f7,_0xb8b1('0xf'),JSON[_0xb8b1('0x11')](_0xf6d8f6));if(_0xf6d8f6['error']){if(_0xf6d8f6[_0xb8b1('0x12')][_0xb8b1('0x13')]===0x1f4){logger[_0xb8b1('0x12')]('AnalyticDefaultReport,\x20%s,\x20%s',_0x4797f7,_0xf6d8f6[_0xb8b1('0x12')][_0xb8b1('0x14')]);return _0x2df16b(_0xf6d8f6[_0xb8b1('0x12')]['message']);}logger[_0xb8b1('0x12')](_0xb8b1('0xe'),_0x4797f7,_0xf6d8f6[_0xb8b1('0x12')][_0xb8b1('0x14')]);return _0x4e3a7c(_0xf6d8f6[_0xb8b1('0x12')][_0xb8b1('0x14')]);}else{logger[_0xb8b1('0xd')](_0xb8b1('0xe'),_0x4797f7,_0xb8b1('0xf'));_0x4e3a7c(_0xf6d8f6[_0xb8b1('0x15')][_0xb8b1('0x14')]);}})[_0xb8b1('0x16')](function(_0x5c86f7){logger[_0xb8b1('0x12')](_0xb8b1('0xe'),_0x4797f7,_0x5c86f7);_0x2df16b(_0x5c86f7);});});}
\ No newline at end of file