44555366c1d1817c5b5b9c89a3d31a81cc87910c
[motion-next.git] / server / config / seedUsers.js
1 const a885_0x1ac0=['User','actpass','then','%s%s','yes','push','agent','udp','all','bulkCreate','friend','format','/etc/pki/tls/certs/motion.crt','log','util','\x22%s\x22\x20<%s>','/etc/pki/tls/private/motion.key','add\x20user','%s%s@xcally.com','password','wss'];(function(_0x2c7415,_0x1ac00b){const _0x50b528=function(_0x2b32ff){while(--_0x2b32ff){_0x2c7415['push'](_0x2c7415['shift']());}};_0x50b528(++_0x1ac00b);}(a885_0x1ac0,0x1e6));const a885_0x50b5=function(_0x2c7415,_0x1ac00b){_0x2c7415=_0x2c7415-0x0;let _0x50b528=a885_0x1ac0[_0x2c7415];return _0x50b528;};const _0x31fbfc=a885_0x50b5;'use strict';const util=require(_0x31fbfc('0xb')),db=require('../mysqldb')['db'],users=[];for(let i=0x1;i<=0xc8;i+=0x1){users[_0x31fbfc('0x2')]({'name':util['format']('%s%s',_0x31fbfc('0x3'),i),'fullname':util[_0x31fbfc('0x8')](_0x31fbfc('0x0'),'agent',i),'email':util[_0x31fbfc('0x8')](_0x31fbfc('0xf'),_0x31fbfc('0x3'),i),'role':'agent','password':_0x31fbfc('0x10'),'internal':0xfa0+i,'type':_0x31fbfc('0x7'),'transport':[_0x31fbfc('0x4'),'ws',_0x31fbfc('0x11')],'disallow':[_0x31fbfc('0x5')],'allow':['ulaw'],'defaultuser':util[_0x31fbfc('0x8')]('%s%s','agent',i),'encryption':_0x31fbfc('0x1'),'avpf':_0x31fbfc('0x1'),'force_avp':'yes','icesupport':_0x31fbfc('0x1'),'dtlsenable':'yes','dtlsverify':'no','dtlscertfile':_0x31fbfc('0x9'),'dtlsprivatekey':_0x31fbfc('0xd'),'dtlssetup':_0x31fbfc('0x13'),'callerid':util['format'](_0x31fbfc('0xc'),util[_0x31fbfc('0x8')](_0x31fbfc('0x0'),_0x31fbfc('0x3'),i),0xfa0+i)});}db[_0x31fbfc('0x12')][_0x31fbfc('0x6')](users)[_0x31fbfc('0x14')](function(){const _0x3c32d1=_0x31fbfc;console[_0x3c32d1('0xa')](_0x3c32d1('0xe'));})['catch'](function(_0x2b32ff){console['log'](_0x2b32ff);});