Built motion from commit 497d3d92.|2.5.43
[motion2.git] / server / api / license / license.rpc.js
index 196df00..76f1650 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe87e=['code','message','result','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','info','License,\x20%s,\x20%s','request\x20sent','License,\x20%s,\x20%s,\x20%s','error'];(function(_0x50521f,_0x4375b3){var _0x29b4be=function(_0x1cb06e){while(--_0x1cb06e){_0x50521f['push'](_0x50521f['shift']());}};_0x29b4be(++_0x4375b3);}(_0xe87e,0x17d));var _0xee87=function(_0x286bfb,_0x46ac3c){_0x286bfb=_0x286bfb-0x0;var _0x52b683=_0xe87e[_0x286bfb];return _0x52b683;};'use strict';var _=require(_0xee87('0x0'));var util=require(_0xee87('0x1'));var moment=require(_0xee87('0x2'));var BPromise=require(_0xee87('0x3'));var rs=require(_0xee87('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xee87('0x5'))['db'];var utils=require(_0xee87('0x6'));var logger=require(_0xee87('0x7'))(_0xee87('0x8'));var config=require(_0xee87('0x9'));var jayson=require(_0xee87('0xa'));var client=jayson[_0xee87('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x589c36,_0x2bde4c,_0x2ee165){return new BPromise(function(_0x2fda67,_0x71d659){return client[_0xee87('0xc')](_0x589c36,_0x2ee165)['then'](function(_0x2ed8e9){logger[_0xee87('0xd')](_0xee87('0xe'),_0x2bde4c,_0xee87('0xf'));logger['debug'](_0xee87('0x10'),_0x2bde4c,_0xee87('0xf'),JSON['stringify'](_0x2ed8e9));if(_0x2ed8e9[_0xee87('0x11')]){if(_0x2ed8e9[_0xee87('0x11')][_0xee87('0x12')]===0x1f4){logger[_0xee87('0x11')](_0xee87('0xe'),_0x2bde4c,_0x2ed8e9[_0xee87('0x11')][_0xee87('0x13')]);return _0x71d659(_0x2ed8e9[_0xee87('0x11')]['message']);}logger[_0xee87('0x11')](_0xee87('0xe'),_0x2bde4c,_0x2ed8e9['error']['message']);return _0x2fda67(_0x2ed8e9[_0xee87('0x11')][_0xee87('0x13')]);}else{logger['info'](_0xee87('0xe'),_0x2bde4c,_0xee87('0xf'));_0x2fda67(_0x2ed8e9[_0xee87('0x14')][_0xee87('0x13')]);}})['catch'](function(_0x290968){logger['error'](_0xee87('0xe'),_0x2bde4c,_0x290968);_0x71d659(_0x290968);});});}
\ No newline at end of file
+var _0xae25=['../../config/utils','rpc','../../config/environment','client','http','request','then','info','License,\x20%s,\x20%s','request\x20sent','debug','License,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb'];(function(_0x5a79e2,_0x319b1a){var _0x266c45=function(_0x172478){while(--_0x172478){_0x5a79e2['push'](_0x5a79e2['shift']());}};_0x266c45(++_0x319b1a);}(_0xae25,0x132));var _0x5ae2=function(_0x15befe,_0x4123bc){_0x15befe=_0x15befe-0x0;var _0x15e095=_0xae25[_0x15befe];return _0x15e095;};'use strict';var _=require(_0x5ae2('0x0'));var util=require(_0x5ae2('0x1'));var moment=require(_0x5ae2('0x2'));var BPromise=require(_0x5ae2('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x5ae2('0x4'));var db=require(_0x5ae2('0x5'))['db'];var utils=require(_0x5ae2('0x6'));var logger=require('../../config/logger')(_0x5ae2('0x7'));var config=require(_0x5ae2('0x8'));var jayson=require('jayson/promise');var client=jayson[_0x5ae2('0x9')][_0x5ae2('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x270a3b,_0x3a00e1,_0x2b251a){return new BPromise(function(_0x5035f4,_0xb43ee){return client[_0x5ae2('0xb')](_0x270a3b,_0x2b251a)[_0x5ae2('0xc')](function(_0x7be6bc){logger[_0x5ae2('0xd')](_0x5ae2('0xe'),_0x3a00e1,_0x5ae2('0xf'));logger[_0x5ae2('0x10')](_0x5ae2('0x11'),_0x3a00e1,'request\x20sent',JSON[_0x5ae2('0x12')](_0x7be6bc));if(_0x7be6bc['error']){if(_0x7be6bc[_0x5ae2('0x13')][_0x5ae2('0x14')]===0x1f4){logger[_0x5ae2('0x13')](_0x5ae2('0xe'),_0x3a00e1,_0x7be6bc['error'][_0x5ae2('0x15')]);return _0xb43ee(_0x7be6bc[_0x5ae2('0x13')][_0x5ae2('0x15')]);}logger['error']('License,\x20%s,\x20%s',_0x3a00e1,_0x7be6bc['error'][_0x5ae2('0x15')]);return _0x5035f4(_0x7be6bc['error'][_0x5ae2('0x15')]);}else{logger['info'](_0x5ae2('0xe'),_0x3a00e1,'request\x20sent');_0x5035f4(_0x7be6bc[_0x5ae2('0x16')][_0x5ae2('0x15')]);}})[_0x5ae2('0x17')](function(_0x124e2c){logger['error'](_0x5ae2('0xe'),_0x3a00e1,_0x124e2c);_0xb43ee(_0x124e2c);});});}
\ No newline at end of file