Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / api / license / license.rpc.js
index fa1da90..4c2611f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x96cc=['../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','License,\x20%s,\x20%s','request\x20sent','License,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','moment','randomstring','ioredis'];(function(_0x3076bd,_0x5a00f6){var _0x2af920=function(_0x59a17c){while(--_0x59a17c){_0x3076bd['push'](_0x3076bd['shift']());}};_0x2af920(++_0x5a00f6);}(_0x96cc,0x16c));var _0xc96c=function(_0x338fe6,_0x325063){_0x338fe6=_0x338fe6-0x0;var _0x17ed6d=_0x96cc[_0x338fe6];return _0x17ed6d;};'use strict';var _=require(_0xc96c('0x0'));var util=require('util');var moment=require(_0xc96c('0x1'));var BPromise=require('bluebird');var rs=require(_0xc96c('0x2'));var fs=require('fs');var Redis=require(_0xc96c('0x3'));var db=require(_0xc96c('0x4'))['db'];var utils=require(_0xc96c('0x5'));var logger=require(_0xc96c('0x6'))(_0xc96c('0x7'));var config=require(_0xc96c('0x8'));var jayson=require(_0xc96c('0x9'));var client=jayson[_0xc96c('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x10b411,_0x18eb9c,_0x408afb){return new BPromise(function(_0x86c1a8,_0x13363d){return client[_0xc96c('0xb')](_0x10b411,_0x408afb)[_0xc96c('0xc')](function(_0x54e765){logger[_0xc96c('0xd')](_0xc96c('0xe'),_0x18eb9c,_0xc96c('0xf'));logger['debug'](_0xc96c('0x10'),_0x18eb9c,'request\x20sent',JSON[_0xc96c('0x11')](_0x54e765));if(_0x54e765['error']){if(_0x54e765[_0xc96c('0x12')][_0xc96c('0x13')]===0x1f4){logger[_0xc96c('0x12')](_0xc96c('0xe'),_0x18eb9c,_0x54e765['error'][_0xc96c('0x14')]);return _0x13363d(_0x54e765[_0xc96c('0x12')][_0xc96c('0x14')]);}logger[_0xc96c('0x12')]('License,\x20%s,\x20%s',_0x18eb9c,_0x54e765[_0xc96c('0x12')][_0xc96c('0x14')]);return _0x86c1a8(_0x54e765[_0xc96c('0x12')][_0xc96c('0x14')]);}else{logger[_0xc96c('0xd')](_0xc96c('0xe'),_0x18eb9c,_0xc96c('0xf'));_0x86c1a8(_0x54e765[_0xc96c('0x15')][_0xc96c('0x14')]);}})[_0xc96c('0x16')](function(_0x861230){logger['error']('License,\x20%s,\x20%s',_0x18eb9c,_0x861230);_0x13363d(_0x861230);});});}
\ No newline at end of file
+var _0xf69b=['then','info','License,\x20%s,\x20%s','request\x20sent','License,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','util','bluebird','ioredis','../../mysqldb','../../config/utils','rpc','jayson/promise','client','http','request'];(function(_0x1966ec,_0x3c9668){var _0x4ae09f=function(_0x42d8f2){while(--_0x42d8f2){_0x1966ec['push'](_0x1966ec['shift']());}};_0x4ae09f(++_0x3c9668);}(_0xf69b,0xc8));var _0xbf69=function(_0x306086,_0x494520){_0x306086=_0x306086-0x0;var _0x2f805d=_0xf69b[_0x306086];return _0x2f805d;};'use strict';var _=require('lodash');var util=require(_0xbf69('0x0'));var moment=require('moment');var BPromise=require(_0xbf69('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xbf69('0x2'));var db=require(_0xbf69('0x3'))['db'];var utils=require(_0xbf69('0x4'));var logger=require('../../config/logger')(_0xbf69('0x5'));var config=require('../../config/environment');var jayson=require(_0xbf69('0x6'));var client=jayson[_0xbf69('0x7')][_0xbf69('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x642645,_0x1af327,_0x4e3088){return new BPromise(function(_0x1fec31,_0x3a4504){return client[_0xbf69('0x9')](_0x642645,_0x4e3088)[_0xbf69('0xa')](function(_0x516ebe){logger[_0xbf69('0xb')](_0xbf69('0xc'),_0x1af327,_0xbf69('0xd'));logger['debug'](_0xbf69('0xe'),_0x1af327,_0xbf69('0xd'),JSON[_0xbf69('0xf')](_0x516ebe));if(_0x516ebe[_0xbf69('0x10')]){if(_0x516ebe['error'][_0xbf69('0x11')]===0x1f4){logger[_0xbf69('0x10')](_0xbf69('0xc'),_0x1af327,_0x516ebe[_0xbf69('0x10')][_0xbf69('0x12')]);return _0x3a4504(_0x516ebe['error']['message']);}logger[_0xbf69('0x10')]('License,\x20%s,\x20%s',_0x1af327,_0x516ebe['error']['message']);return _0x1fec31(_0x516ebe[_0xbf69('0x10')][_0xbf69('0x12')]);}else{logger[_0xbf69('0xb')]('License,\x20%s,\x20%s',_0x1af327,_0xbf69('0xd'));_0x1fec31(_0x516ebe[_0xbf69('0x13')][_0xbf69('0x12')]);}})[_0xbf69('0x14')](function(_0x45312f){logger[_0xbf69('0x10')](_0xbf69('0xc'),_0x1af327,_0x45312f);_0x3a4504(_0x45312f);});});}
\ No newline at end of file