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