Built motion from commit fade34fd.|2.5.41
[motion2.git] / server / config / seedUsers.js
index d711c97..2d64285 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd31e=['User','bulkCreate','then','log','catch','util','../mysqldb','push','format','%s%s','agent','%s%s@xcally.com','password','friend','ulaw','yes','/etc/pki/tls/private/motion.key','actpass','\x22%s\x22\x20<%s>'];(function(_0x3a980f,_0x49e4d6){var _0x36010f=function(_0x2835e6){while(--_0x2835e6){_0x3a980f['push'](_0x3a980f['shift']());}};_0x36010f(++_0x49e4d6);}(_0xd31e,0x194));var _0xed31=function(_0x120843,_0xec2ef2){_0x120843=_0x120843-0x0;var _0x59554d=_0xd31e[_0x120843];return _0x59554d;};'use strict';var util=require(_0xed31('0x0'));var db=require(_0xed31('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xed31('0x2')]({'name':util[_0xed31('0x3')](_0xed31('0x4'),'agent',i),'fullname':util[_0xed31('0x3')](_0xed31('0x4'),_0xed31('0x5'),i),'email':util[_0xed31('0x3')](_0xed31('0x6'),_0xed31('0x5'),i),'role':'agent','password':_0xed31('0x7'),'internal':0xfa0+i,'type':_0xed31('0x8'),'transport':['udp','ws','wss'],'disallow':['all'],'allow':[_0xed31('0x9')],'defaultuser':util['format'](_0xed31('0x4'),_0xed31('0x5'),i),'encryption':_0xed31('0xa'),'avpf':_0xed31('0xa'),'force_avp':_0xed31('0xa'),'icesupport':_0xed31('0xa'),'dtlsenable':_0xed31('0xa'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':_0xed31('0xb'),'dtlssetup':_0xed31('0xc'),'callerid':util['format'](_0xed31('0xd'),util[_0xed31('0x3')](_0xed31('0x4'),_0xed31('0x5'),i),0xfa0+i)});}db[_0xed31('0xe')][_0xed31('0xf')](users)[_0xed31('0x10')](function(){console[_0xed31('0x11')]('add\x20user');})[_0xed31('0x12')](function(_0x5bfeed){console[_0xed31('0x11')](_0x5bfeed);});
\ No newline at end of file
+var _0x6952=['/etc/pki/tls/certs/motion.crt','actpass','User','bulkCreate','then','add\x20user','catch','log','util','../mysqldb','format','%s%s','agent','%s%s@xcally.com','password','udp','wss','ulaw','yes'];(function(_0x3eb9e3,_0xfbb53e){var _0xd4cb41=function(_0x2d0ae9){while(--_0x2d0ae9){_0x3eb9e3['push'](_0x3eb9e3['shift']());}};_0xd4cb41(++_0xfbb53e);}(_0x6952,0x7a));var _0x2695=function(_0x48d790,_0x5016a9){_0x48d790=_0x48d790-0x0;var _0x11da7e=_0x6952[_0x48d790];return _0x11da7e;};'use strict';var util=require(_0x2695('0x0'));var db=require(_0x2695('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util[_0x2695('0x2')](_0x2695('0x3'),_0x2695('0x4'),i),'fullname':util['format']('%s%s',_0x2695('0x4'),i),'email':util[_0x2695('0x2')](_0x2695('0x5'),_0x2695('0x4'),i),'role':_0x2695('0x4'),'password':_0x2695('0x6'),'internal':0xfa0+i,'type':'friend','transport':[_0x2695('0x7'),'ws',_0x2695('0x8')],'disallow':['all'],'allow':[_0x2695('0x9')],'defaultuser':util['format'](_0x2695('0x3'),'agent',i),'encryption':_0x2695('0xa'),'avpf':'yes','force_avp':_0x2695('0xa'),'icesupport':_0x2695('0xa'),'dtlsenable':'yes','dtlsverify':'no','dtlscertfile':_0x2695('0xb'),'dtlsprivatekey':'/etc/pki/tls/private/motion.key','dtlssetup':_0x2695('0xc'),'callerid':util[_0x2695('0x2')]('\x22%s\x22\x20<%s>',util['format']('%s%s',_0x2695('0x4'),i),0xfa0+i)});}db[_0x2695('0xd')][_0x2695('0xe')](users)[_0x2695('0xf')](function(){console['log'](_0x2695('0x10'));})[_0x2695('0x11')](function(_0x5934fe){console[_0x2695('0x12')](_0x5934fe);});
\ No newline at end of file