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