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