Built motion from commit 092f8824.|2.5.49
[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 _0x8db5=['../mysqldb','format','%s%s','agent','password','udp','wss','all','ulaw','yes','\x22%s\x22\x20<%s>','User','bulkCreate','then','log','add\x20user','catch','util'];(function(_0x2d325b,_0x5256ea){var _0x1940da=function(_0x3e64aa){while(--_0x3e64aa){_0x2d325b['push'](_0x2d325b['shift']());}};_0x1940da(++_0x5256ea);}(_0x8db5,0x1d3));var _0x58db=function(_0x4521e3,_0x10a8a4){_0x4521e3=_0x4521e3-0x0;var _0x46a272=_0x8db5[_0x4521e3];return _0x46a272;};'use strict';var util=require(_0x58db('0x0'));var db=require(_0x58db('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util[_0x58db('0x2')](_0x58db('0x3'),'agent',i),'fullname':util[_0x58db('0x2')](_0x58db('0x3'),_0x58db('0x4'),i),'email':util[_0x58db('0x2')]('%s%s@xcally.com',_0x58db('0x4'),i),'role':_0x58db('0x4'),'password':_0x58db('0x5'),'internal':0xfa0+i,'type':'friend','transport':[_0x58db('0x6'),'ws',_0x58db('0x7')],'disallow':[_0x58db('0x8')],'allow':[_0x58db('0x9')],'defaultuser':util[_0x58db('0x2')](_0x58db('0x3'),_0x58db('0x4'),i),'encryption':_0x58db('0xa'),'avpf':_0x58db('0xa'),'force_avp':_0x58db('0xa'),'icesupport':_0x58db('0xa'),'dtlsenable':_0x58db('0xa'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':'/etc/pki/tls/private/motion.key','dtlssetup':'actpass','callerid':util[_0x58db('0x2')](_0x58db('0xb'),util['format'](_0x58db('0x3'),_0x58db('0x4'),i),0xfa0+i)});}db[_0x58db('0xc')][_0x58db('0xd')](users)[_0x58db('0xe')](function(){console[_0x58db('0xf')](_0x58db('0x10'));})[_0x58db('0x11')](function(_0x1f7b3f){console[_0x58db('0xf')](_0x1f7b3f);});