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