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