Built motion from commit (unavailable).|2.5.11
[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 _0xc311=['log','add\x20user','catch','util','../mysqldb','push','format','%s%s','agent','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>','User','bulkCreate','then'];(function(_0xcfe9f,_0x1ef873){var _0x30b0b0=function(_0x1ff2b0){while(--_0x1ff2b0){_0xcfe9f['push'](_0xcfe9f['shift']());}};_0x30b0b0(++_0x1ef873);}(_0xc311,0x15c));var _0x1c31=function(_0x1a10d4,_0x3161d9){_0x1a10d4=_0x1a10d4-0x0;var _0x5d0cec=_0xc311[_0x1a10d4];return _0x5d0cec;};'use strict';var util=require(_0x1c31('0x0'));var db=require(_0x1c31('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0x1c31('0x2')]({'name':util[_0x1c31('0x3')](_0x1c31('0x4'),_0x1c31('0x5'),i),'fullname':util[_0x1c31('0x3')](_0x1c31('0x4'),_0x1c31('0x5'),i),'email':util['format']('%s%s@xcally.com',_0x1c31('0x5'),i),'role':_0x1c31('0x5'),'password':_0x1c31('0x6'),'internal':0xfa0+i,'type':_0x1c31('0x7'),'transport':[_0x1c31('0x8'),'ws',_0x1c31('0x9')],'disallow':[_0x1c31('0xa')],'allow':[_0x1c31('0xb')],'defaultuser':util[_0x1c31('0x3')](_0x1c31('0x4'),_0x1c31('0x5'),i),'encryption':_0x1c31('0xc'),'avpf':_0x1c31('0xc'),'force_avp':_0x1c31('0xc'),'icesupport':_0x1c31('0xc'),'dtlsenable':_0x1c31('0xc'),'dtlsverify':'no','dtlscertfile':_0x1c31('0xd'),'dtlsprivatekey':_0x1c31('0xe'),'dtlssetup':_0x1c31('0xf'),'callerid':util[_0x1c31('0x3')](_0x1c31('0x10'),util[_0x1c31('0x3')]('%s%s',_0x1c31('0x5'),i),0xfa0+i)});}db[_0x1c31('0x11')][_0x1c31('0x12')](users)[_0x1c31('0x13')](function(){console[_0x1c31('0x14')](_0x1c31('0x15'));})[_0x1c31('0x16')](function(_0x1326fc){console['log'](_0x1326fc);});