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