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