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