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