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