Built motion from commit (unavailable).|2.5.8
[motion2.git] / server / config / seedUsers.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x8cfb=['../mysqldb','push','format','agent','%s%s@xcally.com','password','udp','wss','all','%s%s','yes','/etc/pki/tls/private/motion.key','actpass','\x22%s\x22\x20<%s>','User','bulkCreate','then','log','add\x20user','catch'];(function(_0x4633ae,_0x3710e1){var _0x52dcbf=function(_0x127721){while(--_0x127721){_0x4633ae['push'](_0x4633ae['shift']());}};_0x52dcbf(++_0x3710e1);}(_0x8cfb,0x1e0));var _0xb8cf=function(_0x2eb298,_0x223aa0){_0x2eb298=_0x2eb298-0x0;var _0x4927ad=_0x8cfb[_0x2eb298];return _0x4927ad;};'use strict';var util=require('util');var db=require(_0xb8cf('0x0'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xb8cf('0x1')]({'name':util[_0xb8cf('0x2')]('%s%s',_0xb8cf('0x3'),i),'fullname':util[_0xb8cf('0x2')]('%s%s',_0xb8cf('0x3'),i),'email':util[_0xb8cf('0x2')](_0xb8cf('0x4'),_0xb8cf('0x3'),i),'role':_0xb8cf('0x3'),'password':_0xb8cf('0x5'),'internal':0xfa0+i,'type':'friend','transport':[_0xb8cf('0x6'),'ws',_0xb8cf('0x7')],'disallow':[_0xb8cf('0x8')],'allow':['ulaw'],'defaultuser':util[_0xb8cf('0x2')](_0xb8cf('0x9'),'agent',i),'encryption':'yes','avpf':'yes','force_avp':_0xb8cf('0xa'),'icesupport':_0xb8cf('0xa'),'dtlsenable':_0xb8cf('0xa'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':_0xb8cf('0xb'),'dtlssetup':_0xb8cf('0xc'),'callerid':util['format'](_0xb8cf('0xd'),util[_0xb8cf('0x2')](_0xb8cf('0x9'),_0xb8cf('0x3'),i),0xfa0+i)});}db[_0xb8cf('0xe')][_0xb8cf('0xf')](users)[_0xb8cf('0x10')](function(){console[_0xb8cf('0x11')](_0xb8cf('0x12'));})[_0xb8cf('0x13')](function(_0x23cc73){console['log'](_0x23cc73);});