Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / api / license / license.rpc.js
index e77f698..8e2c944 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8164=['debug','request\x20sent','stringify','error','message','result','catch','lodash','util','moment','randomstring','ioredis','../../config/utils','rpc','client','request','then','info','License,\x20%s,\x20%s'];(function(_0x2c77de,_0x7d7e03){var _0x282e28=function(_0x3a500d){while(--_0x3a500d){_0x2c77de['push'](_0x2c77de['shift']());}};_0x282e28(++_0x7d7e03);}(_0x8164,0x170));var _0x4816=function(_0x321cc3,_0xd7325c){_0x321cc3=_0x321cc3-0x0;var _0x5d4df2=_0x8164[_0x321cc3];return _0x5d4df2;};'use strict';var _=require(_0x4816('0x0'));var util=require(_0x4816('0x1'));var moment=require(_0x4816('0x2'));var BPromise=require('bluebird');var rs=require(_0x4816('0x3'));var fs=require('fs');var Redis=require(_0x4816('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x4816('0x5'));var logger=require('../../config/logger')(_0x4816('0x6'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x4816('0x7')]['http']({'port':0x232a});function respondWithRpcPromise(_0x51ab08,_0x2ddb3b,_0x437b8b){return new BPromise(function(_0x170e7a,_0x383974){return client[_0x4816('0x8')](_0x51ab08,_0x437b8b)[_0x4816('0x9')](function(_0x285cab){logger[_0x4816('0xa')](_0x4816('0xb'),_0x2ddb3b,'request\x20sent');logger[_0x4816('0xc')]('License,\x20%s,\x20%s,\x20%s',_0x2ddb3b,_0x4816('0xd'),JSON[_0x4816('0xe')](_0x285cab));if(_0x285cab['error']){if(_0x285cab[_0x4816('0xf')]['code']===0x1f4){logger['error'](_0x4816('0xb'),_0x2ddb3b,_0x285cab['error']['message']);return _0x383974(_0x285cab[_0x4816('0xf')]['message']);}logger[_0x4816('0xf')](_0x4816('0xb'),_0x2ddb3b,_0x285cab[_0x4816('0xf')][_0x4816('0x10')]);return _0x170e7a(_0x285cab[_0x4816('0xf')][_0x4816('0x10')]);}else{logger[_0x4816('0xa')](_0x4816('0xb'),_0x2ddb3b,_0x4816('0xd'));_0x170e7a(_0x285cab[_0x4816('0x11')][_0x4816('0x10')]);}})[_0x4816('0x12')](function(_0x6119f){logger[_0x4816('0xf')](_0x4816('0xb'),_0x2ddb3b,_0x6119f);_0x383974(_0x6119f);});});}
\ 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