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