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