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