bab3567757f0f607fbfbcb54cc4536fdce876612
[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 _0x93c1=['util','format','%s%s','agent','%s%s@xcally.com','password','udp','wss','all','ulaw','yes','/etc/pki/tls/certs/motion.crt','actpass','\x22%s\x22\x20<%s>','User','bulkCreate','then','catch'];(function(_0x3f4f20,_0x12460b){var _0x3af583=function(_0x2c66c4){while(--_0x2c66c4){_0x3f4f20['push'](_0x3f4f20['shift']());}};_0x3af583(++_0x12460b);}(_0x93c1,0x168));var _0x193c=function(_0x934425,_0x5af72f){_0x934425=_0x934425-0x0;var _0x31d596=_0x93c1[_0x934425];return _0x31d596;};'use strict';var util=require(_0x193c('0x0'));var db=require('../mysqldb')['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util[_0x193c('0x1')](_0x193c('0x2'),_0x193c('0x3'),i),'fullname':util['format']('%s%s','agent',i),'email':util[_0x193c('0x1')](_0x193c('0x4'),_0x193c('0x3'),i),'role':'agent','password':_0x193c('0x5'),'internal':0xfa0+i,'type':'friend','transport':[_0x193c('0x6'),'ws',_0x193c('0x7')],'disallow':[_0x193c('0x8')],'allow':[_0x193c('0x9')],'defaultuser':util[_0x193c('0x1')](_0x193c('0x2'),_0x193c('0x3'),i),'encryption':_0x193c('0xa'),'avpf':_0x193c('0xa'),'force_avp':_0x193c('0xa'),'icesupport':'yes','dtlsenable':_0x193c('0xa'),'dtlsverify':'no','dtlscertfile':_0x193c('0xb'),'dtlsprivatekey':'/etc/pki/tls/private/motion.key','dtlssetup':_0x193c('0xc'),'callerid':util[_0x193c('0x1')](_0x193c('0xd'),util[_0x193c('0x1')](_0x193c('0x2'),'agent',i),0xfa0+i)});}db[_0x193c('0xe')][_0x193c('0xf')](users)[_0x193c('0x10')](function(){console['log']('add\x20user');})[_0x193c('0x11')](function(_0x19b773){console['log'](_0x19b773);});