Built motion from commit bfa6da2.|0.0.130
[motion.git] / server / config / license / index.js
1 var _0xe42f=["\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","\x4C\x69\x63\x65\x6E\x73\x65","\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","\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"];_0xe42f[0];var config=require(_0xe42f[1]);var rp=require(_0xe42f[2]);var util=require(_0xe42f[3]);var url=require(_0xe42f[4]);var CronJob=require(_0xe42f[6])[_0xe42f[5]];var License=require(_0xe42f[8])[_0xe42f[7]];var license=require(_0xe42f[9]);var provisioning=config[_0xe42f[10]]+ _0xe42f[11]+ license[_0xe42f[12]]()+ _0xe42f[13];function licenseManager(){var _0xca86xa= new CronJob({cronTime:_0xe42f[14],onTick:function(){var _0xca86xb;return rp({uri:provisioning,json:true})[_0xe42f[21]](function(_0xca86xe){_0xca86xb= _0xca86xe;return License[_0xe42f[20]]({where:{id:1}})})[_0xe42f[19]](function(_0xca86xd){return _0xca86xd[_0xe42f[18]]({license:_0xca86xb[_0xe42f[17]]})})[_0xe42f[16]](function(_0xca86xc){console[_0xe42f[15]](_0xca86xc)})},start:false});_0xca86xa[_0xe42f[22]]();return {}}module[_0xe42f[23]]= licenseManager