Built motion from commit f74363e9.|2.6.34
[motion2.git] / server / config / seedUsers.js
index 18f1793..df47e2c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x342c=['%s%s','agent','format','password','friend','udp','ulaw','yes','/etc/pki/tls/private/motion.key','\x22%s\x22\x20<%s>','User','bulkCreate','then','log','catch','util','../mysqldb','push'];(function(_0x4bdb2e,_0x53ae98){var _0x372646=function(_0x23b355){while(--_0x23b355){_0x4bdb2e['push'](_0x4bdb2e['shift']());}};_0x372646(++_0x53ae98);}(_0x342c,0x9f));var _0xc342=function(_0x15c160,_0x5ce836){_0x15c160=_0x15c160-0x0;var _0x151c5c=_0x342c[_0x15c160];return _0x151c5c;};'use strict';var util=require(_0xc342('0x0'));var db=require(_0xc342('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xc342('0x2')]({'name':util['format'](_0xc342('0x3'),_0xc342('0x4'),i),'fullname':util['format'](_0xc342('0x3'),_0xc342('0x4'),i),'email':util[_0xc342('0x5')]('%s%s@xcally.com',_0xc342('0x4'),i),'role':_0xc342('0x4'),'password':_0xc342('0x6'),'internal':0xfa0+i,'type':_0xc342('0x7'),'transport':[_0xc342('0x8'),'ws','wss'],'disallow':['all'],'allow':[_0xc342('0x9')],'defaultuser':util[_0xc342('0x5')](_0xc342('0x3'),_0xc342('0x4'),i),'encryption':_0xc342('0xa'),'avpf':_0xc342('0xa'),'force_avp':_0xc342('0xa'),'icesupport':_0xc342('0xa'),'dtlsenable':_0xc342('0xa'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':_0xc342('0xb'),'dtlssetup':'actpass','callerid':util[_0xc342('0x5')](_0xc342('0xc'),util[_0xc342('0x5')](_0xc342('0x3'),'agent',i),0xfa0+i)});}db[_0xc342('0xd')][_0xc342('0xe')](users)[_0xc342('0xf')](function(){console[_0xc342('0x10')]('add\x20user');})[_0xc342('0x11')](function(_0x35da24){console[_0xc342('0x10')](_0x35da24);});
\ No newline at end of file
+var _0xb95e=['\x22%s\x22\x20<%s>','User','bulkCreate','then','log','util','../mysqldb','push','%s%s','agent','format','password','friend','udp','wss','all','ulaw','yes','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','actpass'];(function(_0x3d346b,_0x41446c){var _0x2cf970=function(_0x565bd4){while(--_0x565bd4){_0x3d346b['push'](_0x3d346b['shift']());}};_0x2cf970(++_0x41446c);}(_0xb95e,0x16a));var _0xeb95=function(_0x222a8a,_0x575b8b){_0x222a8a=_0x222a8a-0x0;var _0x54447e=_0xb95e[_0x222a8a];return _0x54447e;};'use strict';var util=require(_0xeb95('0x0'));var db=require(_0xeb95('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xeb95('0x2')]({'name':util['format'](_0xeb95('0x3'),_0xeb95('0x4'),i),'fullname':util[_0xeb95('0x5')](_0xeb95('0x3'),_0xeb95('0x4'),i),'email':util['format']('%s%s@xcally.com',_0xeb95('0x4'),i),'role':_0xeb95('0x4'),'password':_0xeb95('0x6'),'internal':0xfa0+i,'type':_0xeb95('0x7'),'transport':[_0xeb95('0x8'),'ws',_0xeb95('0x9')],'disallow':[_0xeb95('0xa')],'allow':[_0xeb95('0xb')],'defaultuser':util['format']('%s%s',_0xeb95('0x4'),i),'encryption':_0xeb95('0xc'),'avpf':_0xeb95('0xc'),'force_avp':_0xeb95('0xc'),'icesupport':'yes','dtlsenable':_0xeb95('0xc'),'dtlsverify':'no','dtlscertfile':_0xeb95('0xd'),'dtlsprivatekey':_0xeb95('0xe'),'dtlssetup':_0xeb95('0xf'),'callerid':util[_0xeb95('0x5')](_0xeb95('0x10'),util[_0xeb95('0x5')]('%s%s',_0xeb95('0x4'),i),0xfa0+i)});}db[_0xeb95('0x11')][_0xeb95('0x12')](users)[_0xeb95('0x13')](function(){console[_0xeb95('0x14')]('add\x20user');})['catch'](function(_0x1bb765){console['log'](_0x1bb765);});
\ No newline at end of file