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