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