Built motion from commit 97153652.|2.6.26
[motion2.git] / server / config / seedUsers.js
index a9d7560..6e85367 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3a4b=['all','yes','/etc/pki/tls/certs/motion.crt','actpass','\x22%s\x22\x20<%s>','User','bulkCreate','log','catch','util','../mysqldb','push','format','%s%s','agent','%s%s@xcally.com','password','friend','udp'];(function(_0x450ee0,_0x2b0833){var _0x396504=function(_0x5b94d9){while(--_0x5b94d9){_0x450ee0['push'](_0x450ee0['shift']());}};_0x396504(++_0x2b0833);}(_0x3a4b,0x68));var _0xb3a4=function(_0x467301,_0x330f3a){_0x467301=_0x467301-0x0;var _0x5060d5=_0x3a4b[_0x467301];return _0x5060d5;};'use strict';var util=require(_0xb3a4('0x0'));var db=require(_0xb3a4('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xb3a4('0x2')]({'name':util[_0xb3a4('0x3')](_0xb3a4('0x4'),_0xb3a4('0x5'),i),'fullname':util[_0xb3a4('0x3')](_0xb3a4('0x4'),'agent',i),'email':util['format'](_0xb3a4('0x6'),_0xb3a4('0x5'),i),'role':_0xb3a4('0x5'),'password':_0xb3a4('0x7'),'internal':0xfa0+i,'type':_0xb3a4('0x8'),'transport':[_0xb3a4('0x9'),'ws','wss'],'disallow':[_0xb3a4('0xa')],'allow':['ulaw'],'defaultuser':util[_0xb3a4('0x3')]('%s%s',_0xb3a4('0x5'),i),'encryption':_0xb3a4('0xb'),'avpf':'yes','force_avp':_0xb3a4('0xb'),'icesupport':'yes','dtlsenable':_0xb3a4('0xb'),'dtlsverify':'no','dtlscertfile':_0xb3a4('0xc'),'dtlsprivatekey':'/etc/pki/tls/private/motion.key','dtlssetup':_0xb3a4('0xd'),'callerid':util[_0xb3a4('0x3')](_0xb3a4('0xe'),util[_0xb3a4('0x3')](_0xb3a4('0x4'),_0xb3a4('0x5'),i),0xfa0+i)});}db[_0xb3a4('0xf')][_0xb3a4('0x10')](users)['then'](function(){console[_0xb3a4('0x11')]('add\x20user');})[_0xb3a4('0x12')](function(_0x496926){console[_0xb3a4('0x11')](_0x496926);});
\ No newline at end of file
+var _0x779e=['agent','format','%s%s@xcally.com','password','friend','udp','ulaw','yes','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','actpass','User','bulkCreate','then','log','add\x20user','catch','util','../mysqldb','push','%s%s'];(function(_0x365072,_0x16f68c){var _0x5cdc5b=function(_0x50da5a){while(--_0x50da5a){_0x365072['push'](_0x365072['shift']());}};_0x5cdc5b(++_0x16f68c);}(_0x779e,0x1f4));var _0xe779=function(_0xfe26da,_0x5ac1b7){_0xfe26da=_0xfe26da-0x0;var _0x2abe6e=_0x779e[_0xfe26da];return _0x2abe6e;};'use strict';var util=require(_0xe779('0x0'));var db=require(_0xe779('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xe779('0x2')]({'name':util['format'](_0xe779('0x3'),_0xe779('0x4'),i),'fullname':util[_0xe779('0x5')](_0xe779('0x3'),_0xe779('0x4'),i),'email':util[_0xe779('0x5')](_0xe779('0x6'),_0xe779('0x4'),i),'role':'agent','password':_0xe779('0x7'),'internal':0xfa0+i,'type':_0xe779('0x8'),'transport':[_0xe779('0x9'),'ws','wss'],'disallow':['all'],'allow':[_0xe779('0xa')],'defaultuser':util['format']('%s%s',_0xe779('0x4'),i),'encryption':_0xe779('0xb'),'avpf':_0xe779('0xb'),'force_avp':'yes','icesupport':_0xe779('0xb'),'dtlsenable':'yes','dtlsverify':'no','dtlscertfile':_0xe779('0xc'),'dtlsprivatekey':_0xe779('0xd'),'dtlssetup':_0xe779('0xe'),'callerid':util[_0xe779('0x5')]('\x22%s\x22\x20<%s>',util[_0xe779('0x5')](_0xe779('0x3'),_0xe779('0x4'),i),0xfa0+i)});}db[_0xe779('0xf')][_0xe779('0x10')](users)[_0xe779('0x11')](function(){console[_0xe779('0x12')](_0xe779('0x13'));})[_0xe779('0x14')](function(_0x2baabb){console[_0xe779('0x12')](_0x2baabb);});
\ No newline at end of file