0a00b8e92dccbd2164e0cc575bd83e1411f5b10a
[motion.git] / server / config / license / index.js
1 var _0x40ae=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x75\x74\x69\x6C","\x75\x72\x6C","\x43\x72\x6F\x6E\x4A\x6F\x62","\x63\x72\x6F\x6E","\x53\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x70\x72\x6F\x76\x69\x73\x69\x6F\x6E\x69\x6E\x67","\x2F\x73\x65\x72\x76\x65\x72\x73\x2F","\x67\x65\x74\x55\x75\x69\x64","\x2F\x63\x68\x65\x63\x6B","\x6C\x6F\x67","\x2A\x20\x2A\x20\x2A\x20\x2A\x20\x2A","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6C\x69\x63\x65\x6E\x73\x65","\x75\x70\x64\x61\x74\x65","\x73\x70\x72\x65\x61\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x74\x68\x65\x6E","\x73\x74\x61\x72\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0x40ae[0];var config=require(_0x40ae[1]);var rp=require(_0x40ae[2]);var util=require(_0x40ae[3]);var url=require(_0x40ae[4]);var CronJob=require(_0x40ae[6])[_0x40ae[5]];var Settings=require(_0x40ae[8])[_0x40ae[7]];var license=require(_0x40ae[9]);var provisioning=config[_0x40ae[10]]+_0x40ae[11]+license[_0x40ae[12]]()+_0x40ae[13];console[_0x40ae[14]](provisioning);function licenseManager(){var _0x5151xa= new CronJob({cronTime:_0x40ae[15],onTick:function(){var _0x5151xb;return rp({uri:provisioning,json:true})[_0x40ae[22]](function(_0x5151xe){_0x5151xb=_0x5151xe;return Settings[_0x40ae[21]]({where:{id:1}})})[_0x40ae[20]](function(_0x5151xd){return _0x5151xd[_0x40ae[19]]({license:_0x5151xb[_0x40ae[18]]})})[_0x40ae[17]](function(_0x5151xc){console[_0x40ae[16]](_0x5151xc)})},start:false});_0x5151xa[_0x40ae[23]]();return {}}module[_0x40ae[24]]=licenseManager