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