Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / config / seedUsers.js
index 8e3a984..12cdea1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd31e=['User','add\x20user','util','../mysqldb','%s%s','agent','format','%s%s@xcally.com','password','friend','udp','wss','all','yes','/etc/pki/tls/private/motion.key','actpass','\x22%s\x22\x20<%s>'];(function(_0x2d9535,_0x4bc592){var _0xb4e710=function(_0x50b9a9){while(--_0x50b9a9){_0x2d9535['push'](_0x2d9535['shift']());}};_0xb4e710(++_0x4bc592);}(_0xd31e,0x19a));var _0xed31=function(_0x4d2b89,_0xba4e90){_0x4d2b89=_0x4d2b89-0x0;var _0x2d35ac=_0xd31e[_0x4d2b89];return _0x2d35ac;};'use strict';var util=require(_0xed31('0x0'));var db=require(_0xed31('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util['format'](_0xed31('0x2'),_0xed31('0x3'),i),'fullname':util[_0xed31('0x4')](_0xed31('0x2'),'agent',i),'email':util[_0xed31('0x4')](_0xed31('0x5'),_0xed31('0x3'),i),'role':_0xed31('0x3'),'password':_0xed31('0x6'),'internal':0xfa0+i,'type':_0xed31('0x7'),'transport':[_0xed31('0x8'),'ws',_0xed31('0x9')],'disallow':[_0xed31('0xa')],'allow':['ulaw'],'defaultuser':util[_0xed31('0x4')](_0xed31('0x2'),_0xed31('0x3'),i),'encryption':_0xed31('0xb'),'avpf':_0xed31('0xb'),'force_avp':_0xed31('0xb'),'icesupport':_0xed31('0xb'),'dtlsenable':_0xed31('0xb'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':_0xed31('0xc'),'dtlssetup':_0xed31('0xd'),'callerid':util['format'](_0xed31('0xe'),util[_0xed31('0x4')]('%s%s',_0xed31('0x3'),i),0xfa0+i)});}db[_0xed31('0xf')]['bulkCreate'](users)['then'](function(){console['log'](_0xed31('0x10'));})['catch'](function(_0x2f2053){console['log'](_0x2f2053);});
\ No newline at end of file
+var _0xa1dd=['yes','/etc/pki/tls/private/motion.key','actpass','\x22%s\x22\x20<%s>','User','bulkCreate','then','log','add\x20user','catch','util','push','format','%s%s','agent','password','friend','udp','wss','all'];(function(_0x425cea,_0x12d003){var _0x193aaa=function(_0x22d7b5){while(--_0x22d7b5){_0x425cea['push'](_0x425cea['shift']());}};_0x193aaa(++_0x12d003);}(_0xa1dd,0x1ea));var _0xda1d=function(_0x309ab4,_0x28b156){_0x309ab4=_0x309ab4-0x0;var _0x170ab1=_0xa1dd[_0x309ab4];return _0x170ab1;};'use strict';var util=require(_0xda1d('0x0'));var db=require('../mysqldb')['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xda1d('0x1')]({'name':util[_0xda1d('0x2')](_0xda1d('0x3'),_0xda1d('0x4'),i),'fullname':util[_0xda1d('0x2')](_0xda1d('0x3'),_0xda1d('0x4'),i),'email':util[_0xda1d('0x2')]('%s%s@xcally.com',_0xda1d('0x4'),i),'role':_0xda1d('0x4'),'password':_0xda1d('0x5'),'internal':0xfa0+i,'type':_0xda1d('0x6'),'transport':[_0xda1d('0x7'),'ws',_0xda1d('0x8')],'disallow':[_0xda1d('0x9')],'allow':['ulaw'],'defaultuser':util['format'](_0xda1d('0x3'),_0xda1d('0x4'),i),'encryption':_0xda1d('0xa'),'avpf':_0xda1d('0xa'),'force_avp':_0xda1d('0xa'),'icesupport':'yes','dtlsenable':_0xda1d('0xa'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':_0xda1d('0xb'),'dtlssetup':_0xda1d('0xc'),'callerid':util[_0xda1d('0x2')](_0xda1d('0xd'),util[_0xda1d('0x2')](_0xda1d('0x3'),_0xda1d('0x4'),i),0xfa0+i)});}db[_0xda1d('0xe')][_0xda1d('0xf')](users)[_0xda1d('0x10')](function(){console[_0xda1d('0x11')](_0xda1d('0x12'));})[_0xda1d('0x13')](function(_0x370b75){console[_0xda1d('0x11')](_0x370b75);});
\ No newline at end of file