Built motion from commit 9d7072cc.|2.5.39
[motion2.git] / server / config / seedUsers.js
index cf50ba3..4644fa0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0xbed8=['then','log','add\x20user','catch','util','%s%s','agent','format','password','wss','all','yes','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','actpass','User','bulkCreate'];(function(_0x4565eb,_0x167f79){var _0x67832=function(_0x5322ff){while(--_0x5322ff){_0x4565eb['push'](_0x4565eb['shift']());}};_0x67832(++_0x167f79);}(_0xbed8,0x1e0));var _0x8bed=function(_0x405dc0,_0x5f2898){_0x405dc0=_0x405dc0-0x0;var _0x1ed46d=_0xbed8[_0x405dc0];return _0x1ed46d;};'use strict';var util=require(_0x8bed('0x0'));var db=require('../mysqldb')['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util['format'](_0x8bed('0x1'),_0x8bed('0x2'),i),'fullname':util[_0x8bed('0x3')]('%s%s',_0x8bed('0x2'),i),'email':util[_0x8bed('0x3')]('%s%s@xcally.com',_0x8bed('0x2'),i),'role':'agent','password':_0x8bed('0x4'),'internal':0xfa0+i,'type':'friend','transport':['udp','ws',_0x8bed('0x5')],'disallow':[_0x8bed('0x6')],'allow':['ulaw'],'defaultuser':util[_0x8bed('0x3')](_0x8bed('0x1'),_0x8bed('0x2'),i),'encryption':'yes','avpf':_0x8bed('0x7'),'force_avp':_0x8bed('0x7'),'icesupport':'yes','dtlsenable':_0x8bed('0x7'),'dtlsverify':'no','dtlscertfile':_0x8bed('0x8'),'dtlsprivatekey':_0x8bed('0x9'),'dtlssetup':_0x8bed('0xa'),'callerid':util['format']('\x22%s\x22\x20<%s>',util[_0x8bed('0x3')]('%s%s','agent',i),0xfa0+i)});}db[_0x8bed('0xb')][_0x8bed('0xc')](users)[_0x8bed('0xd')](function(){console[_0x8bed('0xe')](_0x8bed('0xf'));})[_0x8bed('0x10')](function(_0x5a35d6){console[_0x8bed('0xe')](_0x5a35d6);});
\ No newline at end of file