Built motion from commit da617fac.|2.6.6
[motion2.git] / server / config / seedUsers.js
index 94b8acd..5e6ad6b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0960=['log','add\x20user','catch','util','../mysqldb','push','format','%s%s','agent','%s%s@xcally.com','password','udp','all','ulaw','yes','/etc/pki/tls/private/motion.key','actpass','\x22%s\x22\x20<%s>','User','bulkCreate','then'];(function(_0x5bc7fc,_0x12409d){var _0x69294c=function(_0x1aee5a){while(--_0x1aee5a){_0x5bc7fc['push'](_0x5bc7fc['shift']());}};_0x69294c(++_0x12409d);}(_0x0960,0x1bc));var _0x0096=function(_0x4b10b7,_0x180ad1){_0x4b10b7=_0x4b10b7-0x0;var _0x24802f=_0x0960[_0x4b10b7];return _0x24802f;};'use strict';var util=require(_0x0096('0x0'));var db=require(_0x0096('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0x0096('0x2')]({'name':util[_0x0096('0x3')](_0x0096('0x4'),_0x0096('0x5'),i),'fullname':util['format'](_0x0096('0x4'),_0x0096('0x5'),i),'email':util[_0x0096('0x3')](_0x0096('0x6'),'agent',i),'role':_0x0096('0x5'),'password':_0x0096('0x7'),'internal':0xfa0+i,'type':'friend','transport':[_0x0096('0x8'),'ws','wss'],'disallow':[_0x0096('0x9')],'allow':[_0x0096('0xa')],'defaultuser':util[_0x0096('0x3')](_0x0096('0x4'),_0x0096('0x5'),i),'encryption':_0x0096('0xb'),'avpf':_0x0096('0xb'),'force_avp':_0x0096('0xb'),'icesupport':'yes','dtlsenable':_0x0096('0xb'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':_0x0096('0xc'),'dtlssetup':_0x0096('0xd'),'callerid':util[_0x0096('0x3')](_0x0096('0xe'),util[_0x0096('0x3')]('%s%s',_0x0096('0x5'),i),0xfa0+i)});}db[_0x0096('0xf')][_0x0096('0x10')](users)[_0x0096('0x11')](function(){console[_0x0096('0x12')](_0x0096('0x13'));})[_0x0096('0x14')](function(_0x315ebe){console[_0x0096('0x12')](_0x315ebe);});
\ No newline at end of file
+var _0x53c3=['util','../mysqldb','push','%s%s','agent','format','%s%s@xcally.com','password','friend','wss','all','ulaw','yes','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','actpass','\x22%s\x22\x20<%s>','User','bulkCreate','then','log'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x53c3,0xa8));var _0x353c=function(_0x4a7631,_0x2c85b9){_0x4a7631=_0x4a7631-0x0;var _0x1a5a6f=_0x53c3[_0x4a7631];return _0x1a5a6f;};'use strict';var util=require(_0x353c('0x0'));var db=require(_0x353c('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0x353c('0x2')]({'name':util['format'](_0x353c('0x3'),_0x353c('0x4'),i),'fullname':util['format'](_0x353c('0x3'),_0x353c('0x4'),i),'email':util[_0x353c('0x5')](_0x353c('0x6'),_0x353c('0x4'),i),'role':_0x353c('0x4'),'password':_0x353c('0x7'),'internal':0xfa0+i,'type':_0x353c('0x8'),'transport':['udp','ws',_0x353c('0x9')],'disallow':[_0x353c('0xa')],'allow':[_0x353c('0xb')],'defaultuser':util[_0x353c('0x5')](_0x353c('0x3'),_0x353c('0x4'),i),'encryption':'yes','avpf':_0x353c('0xc'),'force_avp':_0x353c('0xc'),'icesupport':_0x353c('0xc'),'dtlsenable':'yes','dtlsverify':'no','dtlscertfile':_0x353c('0xd'),'dtlsprivatekey':_0x353c('0xe'),'dtlssetup':_0x353c('0xf'),'callerid':util[_0x353c('0x5')](_0x353c('0x10'),util[_0x353c('0x5')](_0x353c('0x3'),_0x353c('0x4'),i),0xfa0+i)});}db[_0x353c('0x11')][_0x353c('0x12')](users)[_0x353c('0x13')](function(){console[_0x353c('0x14')]('add\x20user');})['catch'](function(_0x7fa671){console[_0x353c('0x14')](_0x7fa671);});
\ No newline at end of file