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