Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / config / seedUsers.js
index 51e046d..79bc96e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1929=['/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','actpass','\x22%s\x22\x20<%s>','User','bulkCreate','add\x20user','catch','log','util','../mysqldb','push','format','%s%s','agent','%s%s@xcally.com','friend','udp','wss','all','yes'];(function(_0x5c880e,_0x27610e){var _0x5985ee=function(_0x1c3f8d){while(--_0x1c3f8d){_0x5c880e['push'](_0x5c880e['shift']());}};_0x5985ee(++_0x27610e);}(_0x1929,0x198));var _0x9192=function(_0x29632e,_0x5ecba4){_0x29632e=_0x29632e-0x0;var _0x426e04=_0x1929[_0x29632e];return _0x426e04;};'use strict';var util=require(_0x9192('0x0'));var db=require(_0x9192('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0x9192('0x2')]({'name':util[_0x9192('0x3')](_0x9192('0x4'),_0x9192('0x5'),i),'fullname':util['format'](_0x9192('0x4'),_0x9192('0x5'),i),'email':util[_0x9192('0x3')](_0x9192('0x6'),_0x9192('0x5'),i),'role':_0x9192('0x5'),'password':'password','internal':0xfa0+i,'type':_0x9192('0x7'),'transport':[_0x9192('0x8'),'ws',_0x9192('0x9')],'disallow':[_0x9192('0xa')],'allow':['ulaw'],'defaultuser':util[_0x9192('0x3')](_0x9192('0x4'),'agent',i),'encryption':_0x9192('0xb'),'avpf':_0x9192('0xb'),'force_avp':_0x9192('0xb'),'icesupport':_0x9192('0xb'),'dtlsenable':'yes','dtlsverify':'no','dtlscertfile':_0x9192('0xc'),'dtlsprivatekey':_0x9192('0xd'),'dtlssetup':_0x9192('0xe'),'callerid':util[_0x9192('0x3')](_0x9192('0xf'),util['format']('%s%s',_0x9192('0x5'),i),0xfa0+i)});}db[_0x9192('0x10')][_0x9192('0x11')](users)['then'](function(){console['log'](_0x9192('0x12'));})[_0x9192('0x13')](function(_0x2191b0){console[_0x9192('0x14')](_0x2191b0);});
\ No newline at end of file
+var _0x249b=['actpass','\x22%s\x22\x20<%s>','User','then','catch','log','util','../mysqldb','push','format','%s%s','agent','%s%s@xcally.com','password','friend','wss','all','ulaw','yes','/etc/pki/tls/private/motion.key'];(function(_0x3e2dd8,_0x43ad7a){var _0x4905fe=function(_0x95d102){while(--_0x95d102){_0x3e2dd8['push'](_0x3e2dd8['shift']());}};_0x4905fe(++_0x43ad7a);}(_0x249b,0x1aa));var _0xb249=function(_0x432682,_0x253044){_0x432682=_0x432682-0x0;var _0x463d05=_0x249b[_0x432682];return _0x463d05;};'use strict';var util=require(_0xb249('0x0'));var db=require(_0xb249('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xb249('0x2')]({'name':util[_0xb249('0x3')](_0xb249('0x4'),'agent',i),'fullname':util[_0xb249('0x3')](_0xb249('0x4'),_0xb249('0x5'),i),'email':util['format'](_0xb249('0x6'),_0xb249('0x5'),i),'role':_0xb249('0x5'),'password':_0xb249('0x7'),'internal':0xfa0+i,'type':_0xb249('0x8'),'transport':['udp','ws',_0xb249('0x9')],'disallow':[_0xb249('0xa')],'allow':[_0xb249('0xb')],'defaultuser':util['format'](_0xb249('0x4'),_0xb249('0x5'),i),'encryption':_0xb249('0xc'),'avpf':_0xb249('0xc'),'force_avp':_0xb249('0xc'),'icesupport':_0xb249('0xc'),'dtlsenable':_0xb249('0xc'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':_0xb249('0xd'),'dtlssetup':_0xb249('0xe'),'callerid':util[_0xb249('0x3')](_0xb249('0xf'),util['format'](_0xb249('0x4'),_0xb249('0x5'),i),0xfa0+i)});}db[_0xb249('0x10')]['bulkCreate'](users)[_0xb249('0x11')](function(){console['log']('add\x20user');})[_0xb249('0x12')](function(_0x879297){console[_0xb249('0x13')](_0x879297);});
\ No newline at end of file