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