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