3d3829095ca9589d8de0fa115b2264035c139c26
[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 _0xe08f=['log','add\x20user','format','%s%s','agent','friend','udp','wss','all','ulaw','yes','actpass','bulkCreate'];(function(_0x297eea,_0x5060be){var _0x1c42d2=function(_0x3afff4){while(--_0x3afff4){_0x297eea['push'](_0x297eea['shift']());}};_0x1c42d2(++_0x5060be);}(_0xe08f,0xd2));var _0xfe08=function(_0x2da6a8,_0xeb2597){_0x2da6a8=_0x2da6a8-0x0;var _0xa0ba1d=_0xe08f[_0x2da6a8];return _0xa0ba1d;};'use strict';var util=require('util');var db=require('../mysqldb')['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util[_0xfe08('0x0')](_0xfe08('0x1'),_0xfe08('0x2'),i),'fullname':util['format'](_0xfe08('0x1'),_0xfe08('0x2'),i),'email':util[_0xfe08('0x0')]('%s%s@xcally.com',_0xfe08('0x2'),i),'role':_0xfe08('0x2'),'password':'password','internal':0xfa0+i,'type':_0xfe08('0x3'),'transport':[_0xfe08('0x4'),'ws',_0xfe08('0x5')],'disallow':[_0xfe08('0x6')],'allow':[_0xfe08('0x7')],'defaultuser':util[_0xfe08('0x0')](_0xfe08('0x1'),_0xfe08('0x2'),i),'encryption':'yes','avpf':_0xfe08('0x8'),'force_avp':_0xfe08('0x8'),'icesupport':_0xfe08('0x8'),'dtlsenable':'yes','dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':'/etc/pki/tls/private/motion.key','dtlssetup':_0xfe08('0x9'),'callerid':util['format']('\x22%s\x22\x20<%s>',util[_0xfe08('0x0')](_0xfe08('0x1'),_0xfe08('0x2'),i),0xfa0+i)});}db['User'][_0xfe08('0xa')](users)['then'](function(){console[_0xfe08('0xb')](_0xfe08('0xc'));})['catch'](function(_0xae629d){console['log'](_0xae629d);});