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