Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / config / seedUsers.js
index 016be5d..d5b3c87 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe3fb=['ulaw','yes','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','actpass','User','bulkCreate','then','add\x20user','catch','log','../mysqldb','format','%s%s','agent','%s%s@xcally.com','password','friend','all'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xe3fb,0x19a));var _0xbe3f=function(_0x2943af,_0x72f03b){_0x2943af=_0x2943af-0x0;var _0x3861d2=_0xe3fb[_0x2943af];return _0x3861d2;};'use strict';var util=require('util');var db=require(_0xbe3f('0x0'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util[_0xbe3f('0x1')](_0xbe3f('0x2'),_0xbe3f('0x3'),i),'fullname':util[_0xbe3f('0x1')](_0xbe3f('0x2'),_0xbe3f('0x3'),i),'email':util[_0xbe3f('0x1')](_0xbe3f('0x4'),'agent',i),'role':'agent','password':_0xbe3f('0x5'),'internal':0xfa0+i,'type':_0xbe3f('0x6'),'transport':['udp','ws','wss'],'disallow':[_0xbe3f('0x7')],'allow':[_0xbe3f('0x8')],'defaultuser':util['format'](_0xbe3f('0x2'),_0xbe3f('0x3'),i),'encryption':_0xbe3f('0x9'),'avpf':_0xbe3f('0x9'),'force_avp':'yes','icesupport':_0xbe3f('0x9'),'dtlsenable':'yes','dtlsverify':'no','dtlscertfile':_0xbe3f('0xa'),'dtlsprivatekey':_0xbe3f('0xb'),'dtlssetup':_0xbe3f('0xc'),'callerid':util['format']('\x22%s\x22\x20<%s>',util[_0xbe3f('0x1')](_0xbe3f('0x2'),_0xbe3f('0x3'),i),0xfa0+i)});}db[_0xbe3f('0xd')][_0xbe3f('0xe')](users)[_0xbe3f('0xf')](function(){console['log'](_0xbe3f('0x10'));})[_0xbe3f('0x11')](function(_0x1c19fd){console[_0xbe3f('0x12')](_0x1c19fd);});
\ No newline at end of file
+var _0x2f90=['%s%s','agent','%s%s@xcally.com','password','wss','yes','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','\x22%s\x22\x20<%s>','User','log','add\x20user','catch','../mysqldb','push','format'];(function(_0x5ab0a7,_0x5a5fc4){var _0x133ee7=function(_0x32a128){while(--_0x32a128){_0x5ab0a7['push'](_0x5ab0a7['shift']());}};_0x133ee7(++_0x5a5fc4);}(_0x2f90,0x1cd));var _0x02f9=function(_0x5be9bb,_0x457882){_0x5be9bb=_0x5be9bb-0x0;var _0x4544eb=_0x2f90[_0x5be9bb];return _0x4544eb;};'use strict';var util=require('util');var db=require(_0x02f9('0x0'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0x02f9('0x1')]({'name':util[_0x02f9('0x2')](_0x02f9('0x3'),'agent',i),'fullname':util[_0x02f9('0x2')](_0x02f9('0x3'),_0x02f9('0x4'),i),'email':util[_0x02f9('0x2')](_0x02f9('0x5'),_0x02f9('0x4'),i),'role':_0x02f9('0x4'),'password':_0x02f9('0x6'),'internal':0xfa0+i,'type':'friend','transport':['udp','ws',_0x02f9('0x7')],'disallow':['all'],'allow':['ulaw'],'defaultuser':util[_0x02f9('0x2')]('%s%s',_0x02f9('0x4'),i),'encryption':'yes','avpf':'yes','force_avp':_0x02f9('0x8'),'icesupport':'yes','dtlsenable':_0x02f9('0x8'),'dtlsverify':'no','dtlscertfile':_0x02f9('0x9'),'dtlsprivatekey':_0x02f9('0xa'),'dtlssetup':'actpass','callerid':util[_0x02f9('0x2')](_0x02f9('0xb'),util[_0x02f9('0x2')]('%s%s',_0x02f9('0x4'),i),0xfa0+i)});}db[_0x02f9('0xc')]['bulkCreate'](users)['then'](function(){console[_0x02f9('0xd')](_0x02f9('0xe'));})[_0x02f9('0xf')](function(_0x3186ad){console['log'](_0x3186ad);});
\ No newline at end of file