Built motion from commit e6806ed6.|2.6.0
[motion2.git] / server / api / license / license.rpc.js
index 3642297..5cf3013 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb299=['../../config/logger','../../config/environment','jayson/promise','client','http','info','request\x20sent','License,\x20%s,\x20%s,\x20%s','stringify','error','code','License,\x20%s,\x20%s','message','result','catch','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xb299,0x19b));var _0x9b29=function(_0x34a347,_0xea1891){_0x34a347=_0x34a347-0x0;var _0x3b45a3=_0xb299[_0x34a347];return _0x3b45a3;};'use strict';var _=require(_0x9b29('0x0'));var util=require('util');var moment=require(_0x9b29('0x1'));var BPromise=require(_0x9b29('0x2'));var rs=require(_0x9b29('0x3'));var fs=require('fs');var Redis=require(_0x9b29('0x4'));var db=require(_0x9b29('0x5'))['db'];var utils=require(_0x9b29('0x6'));var logger=require(_0x9b29('0x7'))('rpc');var config=require(_0x9b29('0x8'));var jayson=require(_0x9b29('0x9'));var client=jayson[_0x9b29('0xa')][_0x9b29('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x1a9963,_0x2f6f26,_0x40fcc4){return new BPromise(function(_0x501f9f,_0x6d3961){return client['request'](_0x1a9963,_0x40fcc4)['then'](function(_0x2ce1eb){logger[_0x9b29('0xc')]('License,\x20%s,\x20%s',_0x2f6f26,_0x9b29('0xd'));logger['debug'](_0x9b29('0xe'),_0x2f6f26,_0x9b29('0xd'),JSON[_0x9b29('0xf')](_0x2ce1eb));if(_0x2ce1eb['error']){if(_0x2ce1eb[_0x9b29('0x10')][_0x9b29('0x11')]===0x1f4){logger[_0x9b29('0x10')](_0x9b29('0x12'),_0x2f6f26,_0x2ce1eb[_0x9b29('0x10')][_0x9b29('0x13')]);return _0x6d3961(_0x2ce1eb[_0x9b29('0x10')][_0x9b29('0x13')]);}logger[_0x9b29('0x10')](_0x9b29('0x12'),_0x2f6f26,_0x2ce1eb[_0x9b29('0x10')][_0x9b29('0x13')]);return _0x501f9f(_0x2ce1eb[_0x9b29('0x10')][_0x9b29('0x13')]);}else{logger[_0x9b29('0xc')](_0x9b29('0x12'),_0x2f6f26,_0x9b29('0xd'));_0x501f9f(_0x2ce1eb[_0x9b29('0x14')][_0x9b29('0x13')]);}})[_0x9b29('0x15')](function(_0x28dc39){logger[_0x9b29('0x10')]('License,\x20%s,\x20%s',_0x2f6f26,_0x28dc39);_0x6d3961(_0x28dc39);});});}
\ No newline at end of file
+var _0x11f5=['http','then','info','License,\x20%s,\x20%s','debug','License,\x20%s,\x20%s,\x20%s','request\x20sent','error','message','catch','lodash','util','moment','bluebird','randomstring','ioredis','rpc','jayson/promise','client'];(function(_0x4d3bac,_0x486ed9){var _0x1a79f0=function(_0x5e8f72){while(--_0x5e8f72){_0x4d3bac['push'](_0x4d3bac['shift']());}};_0x1a79f0(++_0x486ed9);}(_0x11f5,0x8f));var _0x511f=function(_0x25864f,_0x2086fe){_0x25864f=_0x25864f-0x0;var _0x847adc=_0x11f5[_0x25864f];return _0x847adc;};'use strict';var _=require(_0x511f('0x0'));var util=require(_0x511f('0x1'));var moment=require(_0x511f('0x2'));var BPromise=require(_0x511f('0x3'));var rs=require(_0x511f('0x4'));var fs=require('fs');var Redis=require(_0x511f('0x5'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x511f('0x6'));var config=require('../../config/environment');var jayson=require(_0x511f('0x7'));var client=jayson[_0x511f('0x8')][_0x511f('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x2a5e02,_0x66d20c,_0x45af0c){return new BPromise(function(_0x583a8c,_0x405d28){return client['request'](_0x2a5e02,_0x45af0c)[_0x511f('0xa')](function(_0x4eace9){logger[_0x511f('0xb')](_0x511f('0xc'),_0x66d20c,'request\x20sent');logger[_0x511f('0xd')](_0x511f('0xe'),_0x66d20c,_0x511f('0xf'),JSON['stringify'](_0x4eace9));if(_0x4eace9['error']){if(_0x4eace9['error']['code']===0x1f4){logger[_0x511f('0x10')]('License,\x20%s,\x20%s',_0x66d20c,_0x4eace9[_0x511f('0x10')]['message']);return _0x405d28(_0x4eace9['error'][_0x511f('0x11')]);}logger[_0x511f('0x10')](_0x511f('0xc'),_0x66d20c,_0x4eace9[_0x511f('0x10')]['message']);return _0x583a8c(_0x4eace9[_0x511f('0x10')][_0x511f('0x11')]);}else{logger['info'](_0x511f('0xc'),_0x66d20c,_0x511f('0xf'));_0x583a8c(_0x4eace9['result'][_0x511f('0x11')]);}})[_0x511f('0x12')](function(_0x136c62){logger[_0x511f('0x10')](_0x511f('0xc'),_0x66d20c,_0x136c62);_0x405d28(_0x136c62);});});}
\ No newline at end of file