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