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