X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fconfig%2FseedUsers.js;h=70ae8fcc6cb827d408d98badd27a41e1e0abb6d5;hb=868a31873a4f5d6a45b7a9cfef882f2e311d37fa;hp=2a0053e7bf15d3f5ab553d9135cd52015af0f3b3;hpb=08f6e0b86d261e0f7c3417afd107d7f774257198;p=motion2.git diff --git a/server/config/seedUsers.js b/server/config/seedUsers.js index 2a0053e..70ae8fc 100644 --- a/server/config/seedUsers.js +++ b/server/config/seedUsers.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0xeefe=['%s%s@xcally.com','password','friend','udp','yes','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','\x22%s\x22\x20<%s>','User','then','log','add\x20user','catch','util','../mysqldb','push','agent','format','%s%s'];(function(_0x1147ab,_0x10e72b){var _0x55cb5a=function(_0x364bd6){while(--_0x364bd6){_0x1147ab['push'](_0x1147ab['shift']());}};_0x55cb5a(++_0x10e72b);}(_0xeefe,0x176));var _0xeeef=function(_0xa42f46,_0x1a9c55){_0xa42f46=_0xa42f46-0x0;var _0x16f876=_0xeefe[_0xa42f46];return _0x16f876;};'use strict';var util=require(_0xeeef('0x0'));var db=require(_0xeeef('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xeeef('0x2')]({'name':util['format']('%s%s',_0xeeef('0x3'),i),'fullname':util[_0xeeef('0x4')](_0xeeef('0x5'),_0xeeef('0x3'),i),'email':util['format'](_0xeeef('0x6'),_0xeeef('0x3'),i),'role':_0xeeef('0x3'),'password':_0xeeef('0x7'),'internal':0xfa0+i,'type':_0xeeef('0x8'),'transport':[_0xeeef('0x9'),'ws','wss'],'disallow':['all'],'allow':['ulaw'],'defaultuser':util[_0xeeef('0x4')](_0xeeef('0x5'),_0xeeef('0x3'),i),'encryption':_0xeeef('0xa'),'avpf':_0xeeef('0xa'),'force_avp':_0xeeef('0xa'),'icesupport':_0xeeef('0xa'),'dtlsenable':'yes','dtlsverify':'no','dtlscertfile':_0xeeef('0xb'),'dtlsprivatekey':_0xeeef('0xc'),'dtlssetup':'actpass','callerid':util[_0xeeef('0x4')](_0xeeef('0xd'),util['format'](_0xeeef('0x5'),_0xeeef('0x3'),i),0xfa0+i)});}db[_0xeeef('0xe')]['bulkCreate'](users)[_0xeeef('0xf')](function(){console[_0xeeef('0x10')](_0xeeef('0x11'));})[_0xeeef('0x12')](function(_0x1b66f5){console[_0xeeef('0x10')](_0x1b66f5);}); \ No newline at end of file +var _0x6ab3=['all','yes','actpass','User','bulkCreate','then','add\x20user','catch','util','push','format','%s%s','agent','password','friend','udp','wss'];(function(_0x5a431e,_0x44b094){var _0x71e5b8=function(_0x499f5f){while(--_0x499f5f){_0x5a431e['push'](_0x5a431e['shift']());}};_0x71e5b8(++_0x44b094);}(_0x6ab3,0xd4));var _0x36ab=function(_0x2f37e0,_0x393ef9){_0x2f37e0=_0x2f37e0-0x0;var _0x43ccce=_0x6ab3[_0x2f37e0];return _0x43ccce;};'use strict';var util=require(_0x36ab('0x0'));var db=require('../mysqldb')['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0x36ab('0x1')]({'name':util[_0x36ab('0x2')](_0x36ab('0x3'),_0x36ab('0x4'),i),'fullname':util[_0x36ab('0x2')](_0x36ab('0x3'),_0x36ab('0x4'),i),'email':util[_0x36ab('0x2')]('%s%s@xcally.com','agent',i),'role':_0x36ab('0x4'),'password':_0x36ab('0x5'),'internal':0xfa0+i,'type':_0x36ab('0x6'),'transport':[_0x36ab('0x7'),'ws',_0x36ab('0x8')],'disallow':[_0x36ab('0x9')],'allow':['ulaw'],'defaultuser':util[_0x36ab('0x2')](_0x36ab('0x3'),_0x36ab('0x4'),i),'encryption':_0x36ab('0xa'),'avpf':'yes','force_avp':'yes','icesupport':_0x36ab('0xa'),'dtlsenable':_0x36ab('0xa'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':'/etc/pki/tls/private/motion.key','dtlssetup':_0x36ab('0xb'),'callerid':util[_0x36ab('0x2')]('\x22%s\x22\x20<%s>',util['format']('%s%s',_0x36ab('0x4'),i),0xfa0+i)});}db[_0x36ab('0xc')][_0x36ab('0xd')](users)[_0x36ab('0xe')](function(){console['log'](_0x36ab('0xf'));})[_0x36ab('0x10')](function(_0x39bc23){console['log'](_0x39bc23);}); \ No newline at end of file