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