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