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