Built motion from commit 25580385.|2.6.2
[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 _0x7eae=['../mysqldb','push','format','%s%s','agent','friend','udp','wss','all','ulaw','yes','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','actpass','\x22%s\x22\x20<%s>','User','bulkCreate','then','log','add\x20user','catch','util'];(function(_0x20620f,_0x37c815){var _0x593a2f=function(_0x25479a){while(--_0x25479a){_0x20620f['push'](_0x20620f['shift']());}};_0x593a2f(++_0x37c815);}(_0x7eae,0x18b));var _0xe7ea=function(_0x2bf141,_0x31eac7){_0x2bf141=_0x2bf141-0x0;var _0x48277b=_0x7eae[_0x2bf141];return _0x48277b;};'use strict';var util=require(_0xe7ea('0x0'));var db=require(_0xe7ea('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xe7ea('0x2')]({'name':util[_0xe7ea('0x3')](_0xe7ea('0x4'),_0xe7ea('0x5'),i),'fullname':util['format'](_0xe7ea('0x4'),_0xe7ea('0x5'),i),'email':util[_0xe7ea('0x3')]('%s%s@xcally.com',_0xe7ea('0x5'),i),'role':_0xe7ea('0x5'),'password':'password','internal':0xfa0+i,'type':_0xe7ea('0x6'),'transport':[_0xe7ea('0x7'),'ws',_0xe7ea('0x8')],'disallow':[_0xe7ea('0x9')],'allow':[_0xe7ea('0xa')],'defaultuser':util[_0xe7ea('0x3')](_0xe7ea('0x4'),_0xe7ea('0x5'),i),'encryption':_0xe7ea('0xb'),'avpf':_0xe7ea('0xb'),'force_avp':_0xe7ea('0xb'),'icesupport':_0xe7ea('0xb'),'dtlsenable':_0xe7ea('0xb'),'dtlsverify':'no','dtlscertfile':_0xe7ea('0xc'),'dtlsprivatekey':_0xe7ea('0xd'),'dtlssetup':_0xe7ea('0xe'),'callerid':util[_0xe7ea('0x3')](_0xe7ea('0xf'),util[_0xe7ea('0x3')]('%s%s',_0xe7ea('0x5'),i),0xfa0+i)});}db[_0xe7ea('0x10')][_0xe7ea('0x11')](users)[_0xe7ea('0x12')](function(){console[_0xe7ea('0x13')](_0xe7ea('0x14'));})[_0xe7ea('0x15')](function(_0x6c2bd9){console[_0xe7ea('0x13')](_0x6c2bd9);});