7bf482b1f8c920cd2799958b4b6d4c57711d37c7
[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 _0x57ea=['log','../mysqldb','push','format','%s%s','agent','%s%s@xcally.com','password','friend','udp','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','catch'];(function(_0x315c25,_0x46c884){var _0x175dac=function(_0x584ea1){while(--_0x584ea1){_0x315c25['push'](_0x315c25['shift']());}};_0x175dac(++_0x46c884);}(_0x57ea,0x14b));var _0xa57e=function(_0x13ed69,_0x229161){_0x13ed69=_0x13ed69-0x0;var _0x50c72e=_0x57ea[_0x13ed69];return _0x50c72e;};'use strict';var util=require('util');var db=require(_0xa57e('0x0'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xa57e('0x1')]({'name':util[_0xa57e('0x2')](_0xa57e('0x3'),_0xa57e('0x4'),i),'fullname':util[_0xa57e('0x2')](_0xa57e('0x3'),_0xa57e('0x4'),i),'email':util[_0xa57e('0x2')](_0xa57e('0x5'),_0xa57e('0x4'),i),'role':_0xa57e('0x4'),'password':_0xa57e('0x6'),'internal':0xfa0+i,'type':_0xa57e('0x7'),'transport':[_0xa57e('0x8'),'ws',_0xa57e('0x9')],'disallow':[_0xa57e('0xa')],'allow':[_0xa57e('0xb')],'defaultuser':util['format'](_0xa57e('0x3'),'agent',i),'encryption':'yes','avpf':_0xa57e('0xc'),'force_avp':_0xa57e('0xc'),'icesupport':'yes','dtlsenable':_0xa57e('0xc'),'dtlsverify':'no','dtlscertfile':_0xa57e('0xd'),'dtlsprivatekey':_0xa57e('0xe'),'dtlssetup':_0xa57e('0xf'),'callerid':util['format'](_0xa57e('0x10'),util[_0xa57e('0x2')](_0xa57e('0x3'),_0xa57e('0x4'),i),0xfa0+i)});}db[_0xa57e('0x11')][_0xa57e('0x12')](users)[_0xa57e('0x13')](function(){console['log']('add\x20user');})[_0xa57e('0x14')](function(_0x3add7f){console[_0xa57e('0x15')](_0x3add7f);});