Built motion from commit da617fac.|2.6.6
[motion2.git] / server / config / seedUsers.js
index 5d440e4..5e6ad6b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0d82=['friend','udp','wss','all','ulaw','yes','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','actpass','\x22%s\x22\x20<%s>','then','log','add\x20user','catch','util','../mysqldb','push','format','%s%s','agent','%s%s@xcally.com','password'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0x0d82,0x66));var _0x20d8=function(_0x1035c1,_0x2d8583){_0x1035c1=_0x1035c1-0x0;var _0x308d67=_0x0d82[_0x1035c1];return _0x308d67;};'use strict';var util=require(_0x20d8('0x0'));var db=require(_0x20d8('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0x20d8('0x2')]({'name':util[_0x20d8('0x3')](_0x20d8('0x4'),'agent',i),'fullname':util[_0x20d8('0x3')](_0x20d8('0x4'),_0x20d8('0x5'),i),'email':util['format'](_0x20d8('0x6'),_0x20d8('0x5'),i),'role':_0x20d8('0x5'),'password':_0x20d8('0x7'),'internal':0xfa0+i,'type':_0x20d8('0x8'),'transport':[_0x20d8('0x9'),'ws',_0x20d8('0xa')],'disallow':[_0x20d8('0xb')],'allow':[_0x20d8('0xc')],'defaultuser':util['format']('%s%s',_0x20d8('0x5'),i),'encryption':_0x20d8('0xd'),'avpf':_0x20d8('0xd'),'force_avp':_0x20d8('0xd'),'icesupport':'yes','dtlsenable':_0x20d8('0xd'),'dtlsverify':'no','dtlscertfile':_0x20d8('0xe'),'dtlsprivatekey':_0x20d8('0xf'),'dtlssetup':_0x20d8('0x10'),'callerid':util[_0x20d8('0x3')](_0x20d8('0x11'),util['format'](_0x20d8('0x4'),_0x20d8('0x5'),i),0xfa0+i)});}db['User']['bulkCreate'](users)[_0x20d8('0x12')](function(){console[_0x20d8('0x13')](_0x20d8('0x14'));})[_0x20d8('0x15')](function(_0x33d448){console[_0x20d8('0x13')](_0x33d448);});
\ 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