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