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