Built motion from commit 9e1399f3.|2.5.37
[motion2.git] / server / config / seedUsers.js
index d4b5b78..b2025d4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x874b=['%s%s@xcally.com','password','udp','wss','ulaw','yes','/etc/pki/tls/private/motion.key','\x22%s\x22\x20<%s>','bulkCreate','then','add\x20user','catch','log','../mysqldb','format','%s%s','agent'];(function(_0x1d0a86,_0x424fd6){var _0x33d85b=function(_0xa548e9){while(--_0xa548e9){_0x1d0a86['push'](_0x1d0a86['shift']());}};_0x33d85b(++_0x424fd6);}(_0x874b,0x150));var _0xb874=function(_0x120177,_0x2cd805){_0x120177=_0x120177-0x0;var _0x1d7e76=_0x874b[_0x120177];return _0x1d7e76;};'use strict';var util=require('util');var db=require(_0xb874('0x0'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util[_0xb874('0x1')](_0xb874('0x2'),_0xb874('0x3'),i),'fullname':util[_0xb874('0x1')](_0xb874('0x2'),'agent',i),'email':util['format'](_0xb874('0x4'),_0xb874('0x3'),i),'role':'agent','password':_0xb874('0x5'),'internal':0xfa0+i,'type':'friend','transport':[_0xb874('0x6'),'ws',_0xb874('0x7')],'disallow':['all'],'allow':[_0xb874('0x8')],'defaultuser':util['format'](_0xb874('0x2'),_0xb874('0x3'),i),'encryption':_0xb874('0x9'),'avpf':'yes','force_avp':_0xb874('0x9'),'icesupport':_0xb874('0x9'),'dtlsenable':_0xb874('0x9'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':_0xb874('0xa'),'dtlssetup':'actpass','callerid':util[_0xb874('0x1')](_0xb874('0xb'),util[_0xb874('0x1')](_0xb874('0x2'),_0xb874('0x3'),i),0xfa0+i)});}db['User'][_0xb874('0xc')](users)[_0xb874('0xd')](function(){console['log'](_0xb874('0xe'));})[_0xb874('0xf')](function(_0x5538a2){console[_0xb874('0x10')](_0x5538a2);});
\ No newline at end of file
+var _0x1f47=['User','bulkCreate','then','log','util','../mysqldb','push','format','%s%s','agent','password','friend','udp','yes','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','actpass'];(function(_0x166742,_0x55520c){var _0xb7814a=function(_0x18feaf){while(--_0x18feaf){_0x166742['push'](_0x166742['shift']());}};_0xb7814a(++_0x55520c);}(_0x1f47,0x19c));var _0x71f4=function(_0x4a492c,_0x34f3da){_0x4a492c=_0x4a492c-0x0;var _0x2311c3=_0x1f47[_0x4a492c];return _0x2311c3;};'use strict';var util=require(_0x71f4('0x0'));var db=require(_0x71f4('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0x71f4('0x2')]({'name':util[_0x71f4('0x3')](_0x71f4('0x4'),_0x71f4('0x5'),i),'fullname':util[_0x71f4('0x3')](_0x71f4('0x4'),_0x71f4('0x5'),i),'email':util['format']('%s%s@xcally.com',_0x71f4('0x5'),i),'role':'agent','password':_0x71f4('0x6'),'internal':0xfa0+i,'type':_0x71f4('0x7'),'transport':[_0x71f4('0x8'),'ws','wss'],'disallow':['all'],'allow':['ulaw'],'defaultuser':util[_0x71f4('0x3')](_0x71f4('0x4'),_0x71f4('0x5'),i),'encryption':_0x71f4('0x9'),'avpf':_0x71f4('0x9'),'force_avp':_0x71f4('0x9'),'icesupport':_0x71f4('0x9'),'dtlsenable':_0x71f4('0x9'),'dtlsverify':'no','dtlscertfile':_0x71f4('0xa'),'dtlsprivatekey':_0x71f4('0xb'),'dtlssetup':_0x71f4('0xc'),'callerid':util[_0x71f4('0x3')]('\x22%s\x22\x20<%s>',util[_0x71f4('0x3')](_0x71f4('0x4'),_0x71f4('0x5'),i),0xfa0+i)});}db[_0x71f4('0xd')][_0x71f4('0xe')](users)[_0x71f4('0xf')](function(){console[_0x71f4('0x10')]('add\x20user');})['catch'](function(_0x3d05a1){console[_0x71f4('0x10')](_0x3d05a1);});
\ No newline at end of file