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