Built motion from commit (unavailable).|2.5.18
[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 _0xb27d=['../mysqldb','format','%s%s','agent','%s%s@xcally.com','password','udp','wss','ulaw','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'];(function(_0x5170f7,_0x50f75f){var _0x30ec02=function(_0x2c77a4){while(--_0x2c77a4){_0x5170f7['push'](_0x5170f7['shift']());}};_0x30ec02(++_0x50f75f);}(_0xb27d,0x1b8));var _0xdb27=function(_0x37bd26,_0x5ad346){_0x37bd26=_0x37bd26-0x0;var _0xe83dc4=_0xb27d[_0x37bd26];return _0xe83dc4;};'use strict';var util=require('util');var db=require(_0xdb27('0x0'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util[_0xdb27('0x1')]('%s%s','agent',i),'fullname':util[_0xdb27('0x1')](_0xdb27('0x2'),_0xdb27('0x3'),i),'email':util['format'](_0xdb27('0x4'),'agent',i),'role':_0xdb27('0x3'),'password':_0xdb27('0x5'),'internal':0xfa0+i,'type':'friend','transport':[_0xdb27('0x6'),'ws',_0xdb27('0x7')],'disallow':['all'],'allow':[_0xdb27('0x8')],'defaultuser':util[_0xdb27('0x1')](_0xdb27('0x2'),_0xdb27('0x3'),i),'encryption':_0xdb27('0x9'),'avpf':_0xdb27('0x9'),'force_avp':'yes','icesupport':_0xdb27('0x9'),'dtlsenable':'yes','dtlsverify':'no','dtlscertfile':_0xdb27('0xa'),'dtlsprivatekey':_0xdb27('0xb'),'dtlssetup':_0xdb27('0xc'),'callerid':util[_0xdb27('0x1')](_0xdb27('0xd'),util[_0xdb27('0x1')]('%s%s','agent',i),0xfa0+i)});}db[_0xdb27('0xe')][_0xdb27('0xf')](users)[_0xdb27('0x10')](function(){console[_0xdb27('0x11')](_0xdb27('0x12'));})[_0xdb27('0x13')](function(_0x54967c){console[_0xdb27('0x11')](_0x54967c);});