Built motion from commit (unavailable).|2.1.0
[motion2.git] / server / api / license / license.rpc.js
index 4d4c972..d8aaff4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdc62=['request','then','info','License,\x20%s,\x20%s','debug','License,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','lodash','util','bluebird','randomstring','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http'];(function(_0x36eaaa,_0x326732){var _0x461349=function(_0x4e4180){while(--_0x4e4180){_0x36eaaa['push'](_0x36eaaa['shift']());}};_0x461349(++_0x326732);}(_0xdc62,0x64));var _0x2dc6=function(_0x4f47ff,_0x39e575){_0x4f47ff=_0x4f47ff-0x0;var _0x48e268=_0xdc62[_0x4f47ff];return _0x48e268;};'use strict';var _=require(_0x2dc6('0x0'));var util=require(_0x2dc6('0x1'));var moment=require('moment');var BPromise=require(_0x2dc6('0x2'));var rs=require(_0x2dc6('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x2dc6('0x4'));var logger=require(_0x2dc6('0x5'))(_0x2dc6('0x6'));var config=require(_0x2dc6('0x7'));var jayson=require(_0x2dc6('0x8'));var client=jayson['client'][_0x2dc6('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x8c026a,_0xf7a377,_0x3a102f){return new BPromise(function(_0x324e52,_0x46b677){return client[_0x2dc6('0xa')](_0x8c026a,_0x3a102f)[_0x2dc6('0xb')](function(_0x36a43e){logger[_0x2dc6('0xc')](_0x2dc6('0xd'),_0xf7a377,'request\x20sent');logger[_0x2dc6('0xe')](_0x2dc6('0xf'),_0xf7a377,_0x2dc6('0x10'),JSON[_0x2dc6('0x11')](_0x36a43e));if(_0x36a43e[_0x2dc6('0x12')]){if(_0x36a43e[_0x2dc6('0x12')][_0x2dc6('0x13')]===0x1f4){logger[_0x2dc6('0x12')](_0x2dc6('0xd'),_0xf7a377,_0x36a43e[_0x2dc6('0x12')][_0x2dc6('0x14')]);return _0x46b677(_0x36a43e[_0x2dc6('0x12')]['message']);}logger[_0x2dc6('0x12')]('License,\x20%s,\x20%s',_0xf7a377,_0x36a43e[_0x2dc6('0x12')][_0x2dc6('0x14')]);return _0x324e52(_0x36a43e['error'][_0x2dc6('0x14')]);}else{logger[_0x2dc6('0xc')](_0x2dc6('0xd'),_0xf7a377,'request\x20sent');_0x324e52(_0x36a43e[_0x2dc6('0x15')][_0x2dc6('0x14')]);}})['catch'](function(_0x14f123){logger[_0x2dc6('0x12')](_0x2dc6('0xd'),_0xf7a377,_0x14f123);_0x46b677(_0x14f123);});});}
\ No newline at end of file
+var _0x52b8=['client','http','then','info','License,\x20%s,\x20%s','request\x20sent','debug','License,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','lodash','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise'];(function(_0x8ba19a,_0x1d2b2b){var _0x2bd8b4=function(_0xee823f){while(--_0xee823f){_0x8ba19a['push'](_0x8ba19a['shift']());}};_0x2bd8b4(++_0x1d2b2b);}(_0x52b8,0x1d9));var _0x852b=function(_0x44c12d,_0x40a33a){_0x44c12d=_0x44c12d-0x0;var _0x49955a=_0x52b8[_0x44c12d];return _0x49955a;};'use strict';var _=require(_0x852b('0x0'));var util=require('util');var moment=require(_0x852b('0x1'));var BPromise=require(_0x852b('0x2'));var rs=require(_0x852b('0x3'));var fs=require('fs');var Redis=require(_0x852b('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x852b('0x5'));var logger=require(_0x852b('0x6'))(_0x852b('0x7'));var config=require(_0x852b('0x8'));var jayson=require(_0x852b('0x9'));var client=jayson[_0x852b('0xa')][_0x852b('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x5c46b1,_0x5b363f,_0x503ceb){return new BPromise(function(_0x1d9ff9,_0x261281){return client['request'](_0x5c46b1,_0x503ceb)[_0x852b('0xc')](function(_0xe89b07){logger[_0x852b('0xd')](_0x852b('0xe'),_0x5b363f,_0x852b('0xf'));logger[_0x852b('0x10')](_0x852b('0x11'),_0x5b363f,_0x852b('0xf'),JSON[_0x852b('0x12')](_0xe89b07));if(_0xe89b07[_0x852b('0x13')]){if(_0xe89b07[_0x852b('0x13')]['code']===0x1f4){logger[_0x852b('0x13')](_0x852b('0xe'),_0x5b363f,_0xe89b07[_0x852b('0x13')][_0x852b('0x14')]);return _0x261281(_0xe89b07['error'][_0x852b('0x14')]);}logger[_0x852b('0x13')](_0x852b('0xe'),_0x5b363f,_0xe89b07[_0x852b('0x13')][_0x852b('0x14')]);return _0x1d9ff9(_0xe89b07[_0x852b('0x13')][_0x852b('0x14')]);}else{logger['info'](_0x852b('0xe'),_0x5b363f,'request\x20sent');_0x1d9ff9(_0xe89b07[_0x852b('0x15')][_0x852b('0x14')]);}})[_0x852b('0x16')](function(_0x4b853d){logger[_0x852b('0x13')](_0x852b('0xe'),_0x5b363f,_0x4b853d);_0x261281(_0x4b853d);});});}
\ No newline at end of file