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