602bdd3c1b99f5aee8c585162c8c56603cf1bcbb
[motion.git] / server / config / license / index.js
1 var _0x34cf=["\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"];_0x34cf[0];var config=require(_0x34cf[1]);var rp=require(_0x34cf[2]);var util=require(_0x34cf[3]);var url=require(_0x34cf[4]);var CronJob=require(_0x34cf[6])[_0x34cf[5]];var Settings=require(_0x34cf[8])[_0x34cf[7]];var license=require(_0x34cf[9]);var provisioning=config[_0x34cf[10]]+ _0x34cf[11]+ license[_0x34cf[12]]()+ _0x34cf[13];console[_0x34cf[14]](provisioning);function licenseManager(){var _0x5688xa= new CronJob({cronTime:_0x34cf[15],onTick:function(){var _0x5688xb;return rp({uri:provisioning,json:true})[_0x34cf[22]](function(_0x5688xe){_0x5688xb= _0x5688xe;return Settings[_0x34cf[21]]({where:{id:1}})})[_0x34cf[20]](function(_0x5688xd){return _0x5688xd[_0x34cf[19]]({license:_0x5688xb[_0x34cf[18]]})})[_0x34cf[17]](function(_0x5688xc){console[_0x34cf[16]](_0x5688xc)})},start:false});_0x5688xa[_0x34cf[23]]();return {}}module[_0x34cf[24]]= licenseManager