Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / api / license / license.rpc.js
index 03918c3..8e2c944 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x544a=['request\x20sent','stringify','error','code','message','result','catch','lodash','util','moment','ioredis','../../mysqldb','../../config/utils','../../config/logger','client','http','then','info','License,\x20%s,\x20%s','debug','License,\x20%s,\x20%s,\x20%s'];(function(_0x1ac595,_0x5d2081){var _0x455fff=function(_0x3043ee){while(--_0x3043ee){_0x1ac595['push'](_0x1ac595['shift']());}};_0x455fff(++_0x5d2081);}(_0x544a,0x118));var _0xa544=function(_0x4f68af,_0x80b3c0){_0x4f68af=_0x4f68af-0x0;var _0x53f43a=_0x544a[_0x4f68af];return _0x53f43a;};'use strict';var _=require(_0xa544('0x0'));var util=require(_0xa544('0x1'));var moment=require(_0xa544('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xa544('0x3'));var db=require(_0xa544('0x4'))['db'];var utils=require(_0xa544('0x5'));var logger=require(_0xa544('0x6'))('rpc');var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xa544('0x7')][_0xa544('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x9609d4,_0x5bfa0f,_0x196f1e){return new BPromise(function(_0x13ce7a,_0x35abfd){return client['request'](_0x9609d4,_0x196f1e)[_0xa544('0x9')](function(_0x3066dd){logger[_0xa544('0xa')](_0xa544('0xb'),_0x5bfa0f,'request\x20sent');logger[_0xa544('0xc')](_0xa544('0xd'),_0x5bfa0f,_0xa544('0xe'),JSON[_0xa544('0xf')](_0x3066dd));if(_0x3066dd[_0xa544('0x10')]){if(_0x3066dd['error'][_0xa544('0x11')]===0x1f4){logger['error']('License,\x20%s,\x20%s',_0x5bfa0f,_0x3066dd['error'][_0xa544('0x12')]);return _0x35abfd(_0x3066dd[_0xa544('0x10')]['message']);}logger['error']('License,\x20%s,\x20%s',_0x5bfa0f,_0x3066dd[_0xa544('0x10')][_0xa544('0x12')]);return _0x13ce7a(_0x3066dd[_0xa544('0x10')]['message']);}else{logger[_0xa544('0xa')](_0xa544('0xb'),_0x5bfa0f,_0xa544('0xe'));_0x13ce7a(_0x3066dd[_0xa544('0x13')][_0xa544('0x12')]);}})[_0xa544('0x14')](function(_0x56c112){logger[_0xa544('0x10')](_0xa544('0xb'),_0x5bfa0f,_0x56c112);_0x35abfd(_0x56c112);});});}
\ No newline at end of file
+var _0x14cf=['code','message','result','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','http','request','info','License,\x20%s,\x20%s','debug','License,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error'];(function(_0x3603ba,_0x137527){var _0x15f202=function(_0x10c121){while(--_0x10c121){_0x3603ba['push'](_0x3603ba['shift']());}};_0x15f202(++_0x137527);}(_0x14cf,0x1e8));var _0xf14c=function(_0x6c993a,_0x5ea3ab){_0x6c993a=_0x6c993a-0x0;var _0x27f547=_0x14cf[_0x6c993a];return _0x27f547;};'use strict';var _=require(_0xf14c('0x0'));var util=require(_0xf14c('0x1'));var moment=require(_0xf14c('0x2'));var BPromise=require(_0xf14c('0x3'));var rs=require(_0xf14c('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xf14c('0x5'))['db'];var utils=require(_0xf14c('0x6'));var logger=require(_0xf14c('0x7'))(_0xf14c('0x8'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson['client'][_0xf14c('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x5b6a54,_0x4a5e25,_0x124280){return new BPromise(function(_0x1f748a,_0x1cdaa9){return client[_0xf14c('0xa')](_0x5b6a54,_0x124280)['then'](function(_0x7b4e29){logger[_0xf14c('0xb')](_0xf14c('0xc'),_0x4a5e25,'request\x20sent');logger[_0xf14c('0xd')](_0xf14c('0xe'),_0x4a5e25,_0xf14c('0xf'),JSON[_0xf14c('0x10')](_0x7b4e29));if(_0x7b4e29[_0xf14c('0x11')]){if(_0x7b4e29[_0xf14c('0x11')][_0xf14c('0x12')]===0x1f4){logger[_0xf14c('0x11')]('License,\x20%s,\x20%s',_0x4a5e25,_0x7b4e29['error'][_0xf14c('0x13')]);return _0x1cdaa9(_0x7b4e29[_0xf14c('0x11')][_0xf14c('0x13')]);}logger[_0xf14c('0x11')](_0xf14c('0xc'),_0x4a5e25,_0x7b4e29[_0xf14c('0x11')][_0xf14c('0x13')]);return _0x1f748a(_0x7b4e29['error'][_0xf14c('0x13')]);}else{logger[_0xf14c('0xb')](_0xf14c('0xc'),_0x4a5e25,_0xf14c('0xf'));_0x1f748a(_0x7b4e29[_0xf14c('0x14')][_0xf14c('0x13')]);}})[_0xf14c('0x15')](function(_0x100237){logger[_0xf14c('0x11')](_0xf14c('0xc'),_0x4a5e25,_0x100237);_0x1cdaa9(_0x100237);});});}
\ No newline at end of file