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