Built motion from commit 3061e47c.|2.6.31
[motion2.git] / server / config / seedUsers.js
index 13ae14e..3d881f0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe9a5=['agent','password','friend','udp','wss','all','yes','/etc/pki/tls/private/motion.key','actpass','\x22%s\x22\x20<%s>','bulkCreate','then','log','add\x20user','util','../mysqldb','format','%s%s'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xe9a5,0x19a));var _0x5e9a=function(_0xd8c694,_0x418bc6){_0xd8c694=_0xd8c694-0x0;var _0x2f34c6=_0xe9a5[_0xd8c694];return _0x2f34c6;};'use strict';var util=require(_0x5e9a('0x0'));var db=require(_0x5e9a('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util[_0x5e9a('0x2')](_0x5e9a('0x3'),_0x5e9a('0x4'),i),'fullname':util[_0x5e9a('0x2')](_0x5e9a('0x3'),_0x5e9a('0x4'),i),'email':util[_0x5e9a('0x2')]('%s%s@xcally.com',_0x5e9a('0x4'),i),'role':'agent','password':_0x5e9a('0x5'),'internal':0xfa0+i,'type':_0x5e9a('0x6'),'transport':[_0x5e9a('0x7'),'ws',_0x5e9a('0x8')],'disallow':[_0x5e9a('0x9')],'allow':['ulaw'],'defaultuser':util['format']('%s%s','agent',i),'encryption':_0x5e9a('0xa'),'avpf':_0x5e9a('0xa'),'force_avp':'yes','icesupport':_0x5e9a('0xa'),'dtlsenable':_0x5e9a('0xa'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':_0x5e9a('0xb'),'dtlssetup':_0x5e9a('0xc'),'callerid':util[_0x5e9a('0x2')](_0x5e9a('0xd'),util['format'](_0x5e9a('0x3'),_0x5e9a('0x4'),i),0xfa0+i)});}db['User'][_0x5e9a('0xe')](users)[_0x5e9a('0xf')](function(){console[_0x5e9a('0x10')](_0x5e9a('0x11'));})['catch'](function(_0x3cbc8f){console['log'](_0x3cbc8f);});
\ No newline at end of file
+var _0x650f=['log','add\x20user','catch','util','push','%s%s','agent','format','%s%s@xcally.com','friend','wss','ulaw','yes','/etc/pki/tls/certs/motion.crt','actpass','\x22%s\x22\x20<%s>','bulkCreate','then'];(function(_0x5ddb1c,_0x5ea4df){var _0x354adc=function(_0x2dfb1f){while(--_0x2dfb1f){_0x5ddb1c['push'](_0x5ddb1c['shift']());}};_0x354adc(++_0x5ea4df);}(_0x650f,0x81));var _0xf650=function(_0x50a738,_0x395755){_0x50a738=_0x50a738-0x0;var _0xcecf37=_0x650f[_0x50a738];return _0xcecf37;};'use strict';var util=require(_0xf650('0x0'));var db=require('../mysqldb')['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xf650('0x1')]({'name':util['format'](_0xf650('0x2'),_0xf650('0x3'),i),'fullname':util[_0xf650('0x4')](_0xf650('0x2'),'agent',i),'email':util[_0xf650('0x4')](_0xf650('0x5'),'agent',i),'role':_0xf650('0x3'),'password':'password','internal':0xfa0+i,'type':_0xf650('0x6'),'transport':['udp','ws',_0xf650('0x7')],'disallow':['all'],'allow':[_0xf650('0x8')],'defaultuser':util[_0xf650('0x4')](_0xf650('0x2'),_0xf650('0x3'),i),'encryption':_0xf650('0x9'),'avpf':_0xf650('0x9'),'force_avp':_0xf650('0x9'),'icesupport':'yes','dtlsenable':_0xf650('0x9'),'dtlsverify':'no','dtlscertfile':_0xf650('0xa'),'dtlsprivatekey':'/etc/pki/tls/private/motion.key','dtlssetup':_0xf650('0xb'),'callerid':util[_0xf650('0x4')](_0xf650('0xc'),util['format'](_0xf650('0x2'),'agent',i),0xfa0+i)});}db['User'][_0xf650('0xd')](users)[_0xf650('0xe')](function(){console[_0xf650('0xf')](_0xf650('0x10'));})[_0xf650('0x11')](function(_0x3f3492){console['log'](_0x3f3492);});
\ No newline at end of file