Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / api / analyticDefaultReport / analyticDefaultReport.rpc.js
index c5f778c..f1ecb30 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc2e8=['client','request','then','info','AnalyticDefaultReport,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message','result','catch','lodash','util','randomstring','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise'];(function(_0x1bc0ae,_0x439dfe){var _0x501104=function(_0x2ade0d){while(--_0x2ade0d){_0x1bc0ae['push'](_0x1bc0ae['shift']());}};_0x501104(++_0x439dfe);}(_0xc2e8,0x70));var _0x8c2e=function(_0x29b564,_0x2d95bd){_0x29b564=_0x29b564-0x0;var _0xae0676=_0xc2e8[_0x29b564];return _0xae0676;};'use strict';var _=require(_0x8c2e('0x0'));var util=require(_0x8c2e('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0x8c2e('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x8c2e('0x3'))['db'];var utils=require(_0x8c2e('0x4'));var logger=require(_0x8c2e('0x5'))('rpc');var config=require(_0x8c2e('0x6'));var jayson=require(_0x8c2e('0x7'));var client=jayson[_0x8c2e('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x4bf5d0,_0x4b8f44,_0x487731){return new BPromise(function(_0x4abd39,_0xcc200c){return client[_0x8c2e('0x9')](_0x4bf5d0,_0x487731)[_0x8c2e('0xa')](function(_0x331e6d){logger[_0x8c2e('0xb')](_0x8c2e('0xc'),_0x4b8f44,_0x8c2e('0xd'));logger[_0x8c2e('0xe')]('AnalyticDefaultReport,\x20%s,\x20%s,\x20%s',_0x4b8f44,_0x8c2e('0xd'),JSON[_0x8c2e('0xf')](_0x331e6d));if(_0x331e6d[_0x8c2e('0x10')]){if(_0x331e6d['error']['code']===0x1f4){logger['error'](_0x8c2e('0xc'),_0x4b8f44,_0x331e6d[_0x8c2e('0x10')][_0x8c2e('0x11')]);return _0xcc200c(_0x331e6d[_0x8c2e('0x10')][_0x8c2e('0x11')]);}logger[_0x8c2e('0x10')](_0x8c2e('0xc'),_0x4b8f44,_0x331e6d['error']['message']);return _0x4abd39(_0x331e6d[_0x8c2e('0x10')][_0x8c2e('0x11')]);}else{logger[_0x8c2e('0xb')](_0x8c2e('0xc'),_0x4b8f44,_0x8c2e('0xd'));_0x4abd39(_0x331e6d[_0x8c2e('0x12')]['message']);}})[_0x8c2e('0x13')](function(_0x10d610){logger[_0x8c2e('0x10')](_0x8c2e('0xc'),_0x4b8f44,_0x10d610);_0xcc200c(_0x10d610);});});}
\ No newline at end of file
+var _0x6d2d=['../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','AnalyticDefaultReport,\x20%s,\x20%s','request\x20sent','debug','AnalyticDefaultReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','moment','bluebird','randomstring','../../mysqldb'];(function(_0x3a143c,_0x17b240){var _0x118f99=function(_0x206d29){while(--_0x206d29){_0x3a143c['push'](_0x3a143c['shift']());}};_0x118f99(++_0x17b240);}(_0x6d2d,0xbc));var _0xd6d2=function(_0x231983,_0x207292){_0x231983=_0x231983-0x0;var _0x440da0=_0x6d2d[_0x231983];return _0x440da0;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xd6d2('0x0'));var BPromise=require(_0xd6d2('0x1'));var rs=require(_0xd6d2('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xd6d2('0x3'))['db'];var utils=require(_0xd6d2('0x4'));var logger=require(_0xd6d2('0x5'))(_0xd6d2('0x6'));var config=require(_0xd6d2('0x7'));var jayson=require(_0xd6d2('0x8'));var client=jayson[_0xd6d2('0x9')][_0xd6d2('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x5e981a,_0xd7f991,_0x736bc2){return new BPromise(function(_0x326cad,_0x539292){return client[_0xd6d2('0xb')](_0x5e981a,_0x736bc2)[_0xd6d2('0xc')](function(_0x390aaf){logger[_0xd6d2('0xd')](_0xd6d2('0xe'),_0xd7f991,_0xd6d2('0xf'));logger[_0xd6d2('0x10')](_0xd6d2('0x11'),_0xd7f991,'request\x20sent',JSON[_0xd6d2('0x12')](_0x390aaf));if(_0x390aaf[_0xd6d2('0x13')]){if(_0x390aaf[_0xd6d2('0x13')][_0xd6d2('0x14')]===0x1f4){logger[_0xd6d2('0x13')](_0xd6d2('0xe'),_0xd7f991,_0x390aaf[_0xd6d2('0x13')]['message']);return _0x539292(_0x390aaf[_0xd6d2('0x13')][_0xd6d2('0x15')]);}logger[_0xd6d2('0x13')](_0xd6d2('0xe'),_0xd7f991,_0x390aaf[_0xd6d2('0x13')]['message']);return _0x326cad(_0x390aaf[_0xd6d2('0x13')][_0xd6d2('0x15')]);}else{logger['info']('AnalyticDefaultReport,\x20%s,\x20%s',_0xd7f991,_0xd6d2('0xf'));_0x326cad(_0x390aaf[_0xd6d2('0x16')]['message']);}})[_0xd6d2('0x17')](function(_0x39c029){logger['error'](_0xd6d2('0xe'),_0xd7f991,_0x39c029);_0x539292(_0x39c029);});});}
\ No newline at end of file