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