Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / api / license / license.rpc.js
index 707a844..206b99a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbefd=['../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','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','randomstring'];(function(_0x5e34fb,_0x5de501){var _0x59c123=function(_0x491ad6){while(--_0x491ad6){_0x5e34fb['push'](_0x5e34fb['shift']());}};_0x59c123(++_0x5de501);}(_0xbefd,0x1c7));var _0xdbef=function(_0x251651,_0x280cdc){_0x251651=_0x251651-0x0;var _0x4d6462=_0xbefd[_0x251651];return _0x4d6462;};'use strict';var _=require(_0xdbef('0x0'));var util=require(_0xdbef('0x1'));var moment=require(_0xdbef('0x2'));var BPromise=require(_0xdbef('0x3'));var rs=require(_0xdbef('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xdbef('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xdbef('0x6'))(_0xdbef('0x7'));var config=require(_0xdbef('0x8'));var jayson=require(_0xdbef('0x9'));var client=jayson['client'][_0xdbef('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x4c0739,_0x24e703,_0x63e5f2){return new BPromise(function(_0x8303c3,_0x53a093){return client[_0xdbef('0xb')](_0x4c0739,_0x63e5f2)[_0xdbef('0xc')](function(_0x2155a5){logger['info'](_0xdbef('0xd'),_0x24e703,_0xdbef('0xe'));logger[_0xdbef('0xf')](_0xdbef('0x10'),_0x24e703,'request\x20sent',JSON[_0xdbef('0x11')](_0x2155a5));if(_0x2155a5['error']){if(_0x2155a5[_0xdbef('0x12')][_0xdbef('0x13')]===0x1f4){logger['error'](_0xdbef('0xd'),_0x24e703,_0x2155a5[_0xdbef('0x12')][_0xdbef('0x14')]);return _0x53a093(_0x2155a5[_0xdbef('0x12')][_0xdbef('0x14')]);}logger[_0xdbef('0x12')](_0xdbef('0xd'),_0x24e703,_0x2155a5[_0xdbef('0x12')]['message']);return _0x8303c3(_0x2155a5[_0xdbef('0x12')][_0xdbef('0x14')]);}else{logger['info'](_0xdbef('0xd'),_0x24e703,_0xdbef('0xe'));_0x8303c3(_0x2155a5[_0xdbef('0x15')]['message']);}})[_0xdbef('0x16')](function(_0x4048f0){logger[_0xdbef('0x12')](_0xdbef('0xd'),_0x24e703,_0x4048f0);_0x53a093(_0x4048f0);});});}
\ No newline at end of file
+var _0x2107=['result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','License,\x20%s,\x20%s','debug','request\x20sent','error','code','message'];(function(_0x44ea23,_0x1f2901){var _0x3b010a=function(_0x212785){while(--_0x212785){_0x44ea23['push'](_0x44ea23['shift']());}};_0x3b010a(++_0x1f2901);}(_0x2107,0x1e1));var _0x7210=function(_0x30033a,_0x5ce4a6){_0x30033a=_0x30033a-0x0;var _0x5e3518=_0x2107[_0x30033a];return _0x5e3518;};'use strict';var _=require(_0x7210('0x0'));var util=require(_0x7210('0x1'));var moment=require(_0x7210('0x2'));var BPromise=require(_0x7210('0x3'));var rs=require(_0x7210('0x4'));var fs=require('fs');var Redis=require(_0x7210('0x5'));var db=require(_0x7210('0x6'))['db'];var utils=require(_0x7210('0x7'));var logger=require(_0x7210('0x8'))(_0x7210('0x9'));var config=require(_0x7210('0xa'));var jayson=require(_0x7210('0xb'));var client=jayson[_0x7210('0xc')][_0x7210('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x391e1c,_0x3f9ae3,_0x52e466){return new BPromise(function(_0x2f9da1,_0x5c61a5){return client[_0x7210('0xe')](_0x391e1c,_0x52e466)[_0x7210('0xf')](function(_0x2a4ae4){logger[_0x7210('0x10')](_0x7210('0x11'),_0x3f9ae3,'request\x20sent');logger[_0x7210('0x12')]('License,\x20%s,\x20%s,\x20%s',_0x3f9ae3,_0x7210('0x13'),JSON['stringify'](_0x2a4ae4));if(_0x2a4ae4['error']){if(_0x2a4ae4[_0x7210('0x14')][_0x7210('0x15')]===0x1f4){logger[_0x7210('0x14')]('License,\x20%s,\x20%s',_0x3f9ae3,_0x2a4ae4[_0x7210('0x14')][_0x7210('0x16')]);return _0x5c61a5(_0x2a4ae4[_0x7210('0x14')][_0x7210('0x16')]);}logger[_0x7210('0x14')](_0x7210('0x11'),_0x3f9ae3,_0x2a4ae4[_0x7210('0x14')][_0x7210('0x16')]);return _0x2f9da1(_0x2a4ae4[_0x7210('0x14')][_0x7210('0x16')]);}else{logger[_0x7210('0x10')](_0x7210('0x11'),_0x3f9ae3,_0x7210('0x13'));_0x2f9da1(_0x2a4ae4[_0x7210('0x17')]['message']);}})['catch'](function(_0x351e2e){logger['error'](_0x7210('0x11'),_0x3f9ae3,_0x351e2e);_0x5c61a5(_0x351e2e);});});}
\ No newline at end of file