Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / license / license.rpc.js
index 8e2c944..102f325 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0x51a3=['jayson/promise','client','http','request','then','info','License,\x20%s,\x20%s','debug','License,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','catch','lodash','util','bluebird','randomstring','ioredis','../../config/logger','rpc','../../config/environment'];(function(_0x239dba,_0x309e95){var _0x1ceb11=function(_0x14efe6){while(--_0x14efe6){_0x239dba['push'](_0x239dba['shift']());}};_0x1ceb11(++_0x309e95);}(_0x51a3,0xb0));var _0x351a=function(_0x4f595b,_0x21875e){_0x4f595b=_0x4f595b-0x0;var _0xc9597c=_0x51a3[_0x4f595b];return _0xc9597c;};'use strict';var _=require(_0x351a('0x0'));var util=require(_0x351a('0x1'));var moment=require('moment');var BPromise=require(_0x351a('0x2'));var rs=require(_0x351a('0x3'));var fs=require('fs');var Redis=require(_0x351a('0x4'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x351a('0x5'))(_0x351a('0x6'));var config=require(_0x351a('0x7'));var jayson=require(_0x351a('0x8'));var client=jayson[_0x351a('0x9')][_0x351a('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x35601e,_0x1bbda0,_0x25bd3f){return new BPromise(function(_0x378c0e,_0x40b8f7){return client[_0x351a('0xb')](_0x35601e,_0x25bd3f)[_0x351a('0xc')](function(_0x26fa08){logger[_0x351a('0xd')](_0x351a('0xe'),_0x1bbda0,'request\x20sent');logger[_0x351a('0xf')](_0x351a('0x10'),_0x1bbda0,_0x351a('0x11'),JSON[_0x351a('0x12')](_0x26fa08));if(_0x26fa08[_0x351a('0x13')]){if(_0x26fa08[_0x351a('0x13')][_0x351a('0x14')]===0x1f4){logger[_0x351a('0x13')](_0x351a('0xe'),_0x1bbda0,_0x26fa08[_0x351a('0x13')][_0x351a('0x15')]);return _0x40b8f7(_0x26fa08['error'][_0x351a('0x15')]);}logger[_0x351a('0x13')](_0x351a('0xe'),_0x1bbda0,_0x26fa08[_0x351a('0x13')][_0x351a('0x15')]);return _0x378c0e(_0x26fa08[_0x351a('0x13')]['message']);}else{logger[_0x351a('0xd')]('License,\x20%s,\x20%s',_0x1bbda0,_0x351a('0x11'));_0x378c0e(_0x26fa08['result'][_0x351a('0x15')]);}})[_0x351a('0x16')](function(_0x5aa5a0){logger[_0x351a('0x13')](_0x351a('0xe'),_0x1bbda0,_0x5aa5a0);_0x40b8f7(_0x5aa5a0);});});}
\ No newline at end of file