Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / license / license.rpc.js
index 3a13147..e5b2453 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc77f=['util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','client','http','request','info','License,\x20%s,\x20%s','request\x20sent','debug','License,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch'];(function(_0x3bf83f,_0x181cac){var _0x22c4a9=function(_0xb3ff0d){while(--_0xb3ff0d){_0x3bf83f['push'](_0x3bf83f['shift']());}};_0x22c4a9(++_0x181cac);}(_0xc77f,0x19e));var _0xfc77=function(_0x178668,_0x1ec300){_0x178668=_0x178668-0x0;var _0x26107d=_0xc77f[_0x178668];return _0x26107d;};'use strict';var _=require('lodash');var util=require(_0xfc77('0x0'));var moment=require(_0xfc77('0x1'));var BPromise=require(_0xfc77('0x2'));var rs=require(_0xfc77('0x3'));var fs=require('fs');var Redis=require(_0xfc77('0x4'));var db=require(_0xfc77('0x5'))['db'];var utils=require(_0xfc77('0x6'));var logger=require(_0xfc77('0x7'))(_0xfc77('0x8'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xfc77('0x9')][_0xfc77('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x41c1a7,_0x44894f,_0x10fb00){return new BPromise(function(_0x3f4073,_0xcc430b){return client[_0xfc77('0xb')](_0x41c1a7,_0x10fb00)['then'](function(_0x5abf14){logger[_0xfc77('0xc')](_0xfc77('0xd'),_0x44894f,_0xfc77('0xe'));logger[_0xfc77('0xf')](_0xfc77('0x10'),_0x44894f,_0xfc77('0xe'),JSON[_0xfc77('0x11')](_0x5abf14));if(_0x5abf14[_0xfc77('0x12')]){if(_0x5abf14[_0xfc77('0x12')][_0xfc77('0x13')]===0x1f4){logger[_0xfc77('0x12')](_0xfc77('0xd'),_0x44894f,_0x5abf14[_0xfc77('0x12')]['message']);return _0xcc430b(_0x5abf14['error'][_0xfc77('0x14')]);}logger[_0xfc77('0x12')](_0xfc77('0xd'),_0x44894f,_0x5abf14[_0xfc77('0x12')][_0xfc77('0x14')]);return _0x3f4073(_0x5abf14[_0xfc77('0x12')][_0xfc77('0x14')]);}else{logger['info'](_0xfc77('0xd'),_0x44894f,'request\x20sent');_0x3f4073(_0x5abf14[_0xfc77('0x15')][_0xfc77('0x14')]);}})[_0xfc77('0x16')](function(_0x10aabd){logger[_0xfc77('0x12')]('License,\x20%s,\x20%s',_0x44894f,_0x10aabd);_0xcc430b(_0x10aabd);});});}
\ No newline at end of file
+var _0x3feb=['ioredis','../../mysqldb','../../config/logger','rpc','jayson/promise','client','http','request','then','License,\x20%s,\x20%s','request\x20sent','debug','error','code','message','result','catch','lodash','util','moment','bluebird'];(function(_0x3a7b72,_0x43751b){var _0x2752a3=function(_0x564050){while(--_0x564050){_0x3a7b72['push'](_0x3a7b72['shift']());}};_0x2752a3(++_0x43751b);}(_0x3feb,0x7a));var _0xb3fe=function(_0x5cd9cf,_0x81e149){_0x5cd9cf=_0x5cd9cf-0x0;var _0x281d05=_0x3feb[_0x5cd9cf];return _0x281d05;};'use strict';var _=require(_0xb3fe('0x0'));var util=require(_0xb3fe('0x1'));var moment=require(_0xb3fe('0x2'));var BPromise=require(_0xb3fe('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xb3fe('0x4'));var db=require(_0xb3fe('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xb3fe('0x6'))(_0xb3fe('0x7'));var config=require('../../config/environment');var jayson=require(_0xb3fe('0x8'));var client=jayson[_0xb3fe('0x9')][_0xb3fe('0xa')]({'port':0x232a});function respondWithRpcPromise(_0xd1179c,_0x36aa28,_0x46e423){return new BPromise(function(_0x2d403f,_0x32e42a){return client[_0xb3fe('0xb')](_0xd1179c,_0x46e423)[_0xb3fe('0xc')](function(_0x31def8){logger['info'](_0xb3fe('0xd'),_0x36aa28,_0xb3fe('0xe'));logger[_0xb3fe('0xf')]('License,\x20%s,\x20%s,\x20%s',_0x36aa28,_0xb3fe('0xe'),JSON['stringify'](_0x31def8));if(_0x31def8[_0xb3fe('0x10')]){if(_0x31def8[_0xb3fe('0x10')][_0xb3fe('0x11')]===0x1f4){logger[_0xb3fe('0x10')](_0xb3fe('0xd'),_0x36aa28,_0x31def8[_0xb3fe('0x10')][_0xb3fe('0x12')]);return _0x32e42a(_0x31def8['error']['message']);}logger[_0xb3fe('0x10')](_0xb3fe('0xd'),_0x36aa28,_0x31def8[_0xb3fe('0x10')][_0xb3fe('0x12')]);return _0x2d403f(_0x31def8['error'][_0xb3fe('0x12')]);}else{logger['info'](_0xb3fe('0xd'),_0x36aa28,'request\x20sent');_0x2d403f(_0x31def8[_0xb3fe('0x13')][_0xb3fe('0x12')]);}})[_0xb3fe('0x14')](function(_0xe00cd2){logger[_0xb3fe('0x10')](_0xb3fe('0xd'),_0x36aa28,_0xe00cd2);_0x32e42a(_0xe00cd2);});});}
\ No newline at end of file