Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / config / seedUsers.js
index bc2c879..cf50ba3 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd62f=['add\x20user','log','../mysqldb','push','%s%s@xcally.com','agent','password','udp','wss','%s%s','yes','/etc/pki/tls/private/motion.key','actpass','format','\x22%s\x22\x20<%s>','User','bulkCreate','then'];(function(_0x5a446e,_0x14c23c){var _0x3f4c83=function(_0xc7c5cf){while(--_0xc7c5cf){_0x5a446e['push'](_0x5a446e['shift']());}};_0x3f4c83(++_0x14c23c);}(_0xd62f,0x1c4));var _0xfd62=function(_0x1c94b6,_0x3fe3e0){_0x1c94b6=_0x1c94b6-0x0;var _0x5c061a=_0xd62f[_0x1c94b6];return _0x5c061a;};'use strict';var util=require('util');var db=require(_0xfd62('0x0'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xfd62('0x1')]({'name':util['format']('%s%s','agent',i),'fullname':util['format']('%s%s','agent',i),'email':util['format'](_0xfd62('0x2'),_0xfd62('0x3'),i),'role':_0xfd62('0x3'),'password':_0xfd62('0x4'),'internal':0xfa0+i,'type':'friend','transport':[_0xfd62('0x5'),'ws',_0xfd62('0x6')],'disallow':['all'],'allow':['ulaw'],'defaultuser':util['format'](_0xfd62('0x7'),_0xfd62('0x3'),i),'encryption':_0xfd62('0x8'),'avpf':_0xfd62('0x8'),'force_avp':'yes','icesupport':_0xfd62('0x8'),'dtlsenable':_0xfd62('0x8'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':_0xfd62('0x9'),'dtlssetup':_0xfd62('0xa'),'callerid':util[_0xfd62('0xb')](_0xfd62('0xc'),util['format']('%s%s','agent',i),0xfa0+i)});}db[_0xfd62('0xd')][_0xfd62('0xe')](users)[_0xfd62('0xf')](function(){console['log'](_0xfd62('0x10'));})['catch'](function(_0x1c54c7){console[_0xfd62('0x11')](_0x1c54c7);});
\ No newline at end of file
+var _0x3cfa=['catch','util','../mysqldb','push','format','agent','%s%s','%s%s@xcally.com','password','friend','udp','wss','ulaw','yes','/etc/pki/tls/private/motion.key','actpass','\x22%s\x22\x20<%s>','then','log','add\x20user'];(function(_0x2b2d47,_0x3916b7){var _0x5ba6b5=function(_0x3587a5){while(--_0x3587a5){_0x2b2d47['push'](_0x2b2d47['shift']());}};_0x5ba6b5(++_0x3916b7);}(_0x3cfa,0x12d));var _0xa3cf=function(_0x47a38c,_0x2efcc5){_0x47a38c=_0x47a38c-0x0;var _0x347e63=_0x3cfa[_0x47a38c];return _0x347e63;};'use strict';var util=require(_0xa3cf('0x0'));var db=require(_0xa3cf('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xa3cf('0x2')]({'name':util[_0xa3cf('0x3')]('%s%s',_0xa3cf('0x4'),i),'fullname':util[_0xa3cf('0x3')](_0xa3cf('0x5'),_0xa3cf('0x4'),i),'email':util['format'](_0xa3cf('0x6'),_0xa3cf('0x4'),i),'role':_0xa3cf('0x4'),'password':_0xa3cf('0x7'),'internal':0xfa0+i,'type':_0xa3cf('0x8'),'transport':[_0xa3cf('0x9'),'ws',_0xa3cf('0xa')],'disallow':['all'],'allow':[_0xa3cf('0xb')],'defaultuser':util[_0xa3cf('0x3')](_0xa3cf('0x5'),'agent',i),'encryption':_0xa3cf('0xc'),'avpf':_0xa3cf('0xc'),'force_avp':_0xa3cf('0xc'),'icesupport':_0xa3cf('0xc'),'dtlsenable':_0xa3cf('0xc'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':_0xa3cf('0xd'),'dtlssetup':_0xa3cf('0xe'),'callerid':util[_0xa3cf('0x3')](_0xa3cf('0xf'),util['format'](_0xa3cf('0x5'),_0xa3cf('0x4'),i),0xfa0+i)});}db['User']['bulkCreate'](users)[_0xa3cf('0x10')](function(){console[_0xa3cf('0x11')](_0xa3cf('0x12'));})[_0xa3cf('0x13')](function(_0x2ce50b){console[_0xa3cf('0x11')](_0x2ce50b);});
\ No newline at end of file