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