Built motion from commit d5e4af8c.|2.6.23
[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 _0x0aec=['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','\x22%s\x22\x20<%s>','User','bulkCreate','then','log','add\x20user','catch','util','../mysqldb','push'];(function(_0x51bb38,_0x4e57a0){var _0x51c09b=function(_0x3321e2){while(--_0x3321e2){_0x51bb38['push'](_0x51bb38['shift']());}};_0x51c09b(++_0x4e57a0);}(_0x0aec,0x184));var _0xc0ae=function(_0x479dd8,_0x4e3ab8){_0x479dd8=_0x479dd8-0x0;var _0x1f8d28=_0x0aec[_0x479dd8];return _0x1f8d28;};'use strict';var util=require(_0xc0ae('0x0'));var db=require(_0xc0ae('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0xc0ae('0x2')]({'name':util[_0xc0ae('0x3')](_0xc0ae('0x4'),_0xc0ae('0x5'),i),'fullname':util['format'](_0xc0ae('0x4'),_0xc0ae('0x5'),i),'email':util[_0xc0ae('0x3')](_0xc0ae('0x6'),_0xc0ae('0x5'),i),'role':'agent','password':_0xc0ae('0x7'),'internal':0xfa0+i,'type':_0xc0ae('0x8'),'transport':[_0xc0ae('0x9'),'ws',_0xc0ae('0xa')],'disallow':[_0xc0ae('0xb')],'allow':[_0xc0ae('0xc')],'defaultuser':util['format']('%s%s','agent',i),'encryption':_0xc0ae('0xd'),'avpf':_0xc0ae('0xd'),'force_avp':_0xc0ae('0xd'),'icesupport':_0xc0ae('0xd'),'dtlsenable':'yes','dtlsverify':'no','dtlscertfile':_0xc0ae('0xe'),'dtlsprivatekey':_0xc0ae('0xf'),'dtlssetup':'actpass','callerid':util[_0xc0ae('0x3')](_0xc0ae('0x10'),util[_0xc0ae('0x3')](_0xc0ae('0x4'),_0xc0ae('0x5'),i),0xfa0+i)});}db[_0xc0ae('0x11')][_0xc0ae('0x12')](users)[_0xc0ae('0x13')](function(){console[_0xc0ae('0x14')](_0xc0ae('0x15'));})[_0xc0ae('0x16')](function(_0x5da671){console['log'](_0x5da671);});