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