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