Built motion from commit f8768ebe.|2.6.15
[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 _0x517a=['%s%s@xcally.com','password','wss','all','ulaw','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','format','%s%s','agent'];(function(_0x23bfb3,_0x2cb9c0){var _0x487605=function(_0x1862c2){while(--_0x1862c2){_0x23bfb3['push'](_0x23bfb3['shift']());}};_0x487605(++_0x2cb9c0);}(_0x517a,0xf4));var _0xa517=function(_0x22b362,_0x38eea1){_0x22b362=_0x22b362-0x0;var _0x38d609=_0x517a[_0x22b362];return _0x38d609;};'use strict';var util=require('util');var db=require('../mysqldb')['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util[_0xa517('0x0')](_0xa517('0x1'),_0xa517('0x2'),i),'fullname':util[_0xa517('0x0')](_0xa517('0x1'),'agent',i),'email':util[_0xa517('0x0')](_0xa517('0x3'),_0xa517('0x2'),i),'role':_0xa517('0x2'),'password':_0xa517('0x4'),'internal':0xfa0+i,'type':'friend','transport':['udp','ws',_0xa517('0x5')],'disallow':[_0xa517('0x6')],'allow':[_0xa517('0x7')],'defaultuser':util[_0xa517('0x0')](_0xa517('0x1'),_0xa517('0x2'),i),'encryption':_0xa517('0x8'),'avpf':_0xa517('0x8'),'force_avp':_0xa517('0x8'),'icesupport':_0xa517('0x8'),'dtlsenable':'yes','dtlsverify':'no','dtlscertfile':_0xa517('0x9'),'dtlsprivatekey':_0xa517('0xa'),'dtlssetup':_0xa517('0xb'),'callerid':util[_0xa517('0x0')](_0xa517('0xc'),util[_0xa517('0x0')](_0xa517('0x1'),_0xa517('0x2'),i),0xfa0+i)});}db[_0xa517('0xd')][_0xa517('0xe')](users)[_0xa517('0xf')](function(){console[_0xa517('0x10')](_0xa517('0x11'));})[_0xa517('0x12')](function(_0x35f6f8){console[_0xa517('0x10')](_0x35f6f8);});