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