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