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