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