Built motion from commit (unavailable).|2.0.75
[motion2.git] / server / api / license / license.rpc.js
index 35fdfdd..f6c00b2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe3fa=['License,\x20%s,\x20%s','debug','License,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','request','then','info'];(function(_0x2407c9,_0x4e7281){var _0x532928=function(_0x10c650){while(--_0x10c650){_0x2407c9['push'](_0x2407c9['shift']());}};_0x532928(++_0x4e7281);}(_0xe3fa,0xaa));var _0xae3f=function(_0x4148fa,_0x1eb905){_0x4148fa=_0x4148fa-0x0;var _0x390cb4=_0xe3fa[_0x4148fa];return _0x390cb4;};'use strict';var _=require(_0xae3f('0x0'));var util=require(_0xae3f('0x1'));var moment=require(_0xae3f('0x2'));var BPromise=require(_0xae3f('0x3'));var rs=require(_0xae3f('0x4'));var fs=require('fs');var db=require(_0xae3f('0x5'))['db'];var utils=require(_0xae3f('0x6'));var logger=require('../../config/logger')(_0xae3f('0x7'));var config=require(_0xae3f('0x8'));var jayson=require(_0xae3f('0x9'));var client=jayson[_0xae3f('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x2428ac,_0x541ba1,_0x26108d){return new BPromise(function(_0x4fc8b5,_0x28b059){return client[_0xae3f('0xb')](_0x2428ac,_0x26108d)[_0xae3f('0xc')](function(_0x5b7d02){logger[_0xae3f('0xd')](_0xae3f('0xe'),_0x541ba1,'request\x20sent');logger[_0xae3f('0xf')](_0xae3f('0x10'),_0x541ba1,_0xae3f('0x11'),JSON[_0xae3f('0x12')](_0x5b7d02));if(_0x5b7d02[_0xae3f('0x13')]){if(_0x5b7d02[_0xae3f('0x13')]['code']===0x1f4){logger[_0xae3f('0x13')](_0xae3f('0xe'),_0x541ba1,_0x5b7d02[_0xae3f('0x13')][_0xae3f('0x14')]);return _0x28b059(_0x5b7d02[_0xae3f('0x13')][_0xae3f('0x14')]);}logger['error'](_0xae3f('0xe'),_0x541ba1,_0x5b7d02[_0xae3f('0x13')][_0xae3f('0x14')]);return _0x4fc8b5(_0x5b7d02[_0xae3f('0x13')][_0xae3f('0x14')]);}else{logger['info'](_0xae3f('0xe'),_0x541ba1,_0xae3f('0x11'));_0x4fc8b5(_0x5b7d02[_0xae3f('0x15')][_0xae3f('0x14')]);}})[_0xae3f('0x16')](function(_0x17a175){logger[_0xae3f('0x13')]('License,\x20%s,\x20%s',_0x541ba1,_0x17a175);_0x28b059(_0x17a175);});});}
\ No newline at end of file
+var _0x43f2=['moment','bluebird','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','License,\x20%s,\x20%s','request\x20sent','debug','License,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','catch','lodash','util'];(function(_0x321118,_0x39f50c){var _0x299425=function(_0x2c956d){while(--_0x2c956d){_0x321118['push'](_0x321118['shift']());}};_0x299425(++_0x39f50c);}(_0x43f2,0x1d9));var _0x243f=function(_0x3fd8c7,_0xc76d47){_0x3fd8c7=_0x3fd8c7-0x0;var _0x3831c3=_0x43f2[_0x3fd8c7];return _0x3831c3;};'use strict';var _=require(_0x243f('0x0'));var util=require(_0x243f('0x1'));var moment=require(_0x243f('0x2'));var BPromise=require(_0x243f('0x3'));var rs=require('randomstring');var fs=require('fs');var db=require(_0x243f('0x4'))['db'];var utils=require(_0x243f('0x5'));var logger=require(_0x243f('0x6'))(_0x243f('0x7'));var config=require(_0x243f('0x8'));var jayson=require(_0x243f('0x9'));var client=jayson[_0x243f('0xa')][_0x243f('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x50c5b9,_0x319468,_0x526b35){return new BPromise(function(_0x3abbf2,_0x5be43b){return client[_0x243f('0xc')](_0x50c5b9,_0x526b35)[_0x243f('0xd')](function(_0x32effc){logger['info'](_0x243f('0xe'),_0x319468,_0x243f('0xf'));logger[_0x243f('0x10')](_0x243f('0x11'),_0x319468,_0x243f('0xf'),JSON[_0x243f('0x12')](_0x32effc));if(_0x32effc[_0x243f('0x13')]){if(_0x32effc[_0x243f('0x13')][_0x243f('0x14')]===0x1f4){logger[_0x243f('0x13')]('License,\x20%s,\x20%s',_0x319468,_0x32effc['error']['message']);return _0x5be43b(_0x32effc[_0x243f('0x13')][_0x243f('0x15')]);}logger['error'](_0x243f('0xe'),_0x319468,_0x32effc[_0x243f('0x13')][_0x243f('0x15')]);return _0x3abbf2(_0x32effc[_0x243f('0x13')][_0x243f('0x15')]);}else{logger[_0x243f('0x16')](_0x243f('0xe'),_0x319468,_0x243f('0xf'));_0x3abbf2(_0x32effc[_0x243f('0x17')][_0x243f('0x15')]);}})[_0x243f('0x18')](function(_0x1bbcc6){logger[_0x243f('0x13')](_0x243f('0xe'),_0x319468,_0x1bbcc6);_0x5be43b(_0x1bbcc6);});});}
\ No newline at end of file