This commit is contained in:
Nawaz Dhandala
2022-01-23 12:33:05 +00:00
parent 403a88bd9c
commit 0230949f1d
122 changed files with 16 additions and 218 deletions

View File

@@ -1,15 +1,17 @@
import amplitude from 'amplitude-js'
import amplitude from 'amplitude-js';
import { env } from './config';
amplitude.getInstance().init(env('AMPLITUDE_PUBLIC_KEY'), null, { includeReferrer: true });
amplitude
.getInstance()
.init(env('AMPLITUDE_PUBLIC_KEY'), null, { includeReferrer: true });
export const setUserId = (userId) => {
export const setUserId = userId => {
amplitude.setUserId(userId);
};
export const identify = (userId) => {
export const identify = userId => {
amplitude.identify(userId);
};
export const setUserProperties = (properties) => {
export const setUserProperties = properties => {
amplitude.setUserProperties(properties);
};
export const logEvent = (event, data) => {

View File

@@ -1,4 +1,3 @@
const getApi = require('../utils/api').getApi;
const ErrorService = require('../utils/errorService');
const ApplicationSecurity = require('./applicationSecurity');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const alertService = require('../services/alertService');
const IncidentService = require('../services/incidentService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const ApplicationLogService = require('../services/applicationLogService');
const UserService = require('../services/userService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const ApplicationSecurityService = require('../services/applicationSecurityService');
const ApplicationSecurityLogService = require('../services//applicationSecurityLogService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const { fetchPhoneNumbers } = require('../services/twilioService');
const CallRoutingService = require('../services/callRoutingService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const UserService = require('../services/userService');
const ComponentService = require('../services/componentService');

View File

@@ -1,4 +1,3 @@
const express = require('express');
const router = express.Router();
const ContainerSecurityService = require('../services/containerSecurityService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const EmailSmtpService = require('../services/emailSmtpService');
const MailService = require('../services/mailService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const EmailTemplateService = require('../services/emailTemplateService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const moment = require('moment');
const Handlebars = require('handlebars');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();
const InvoiceService = require('../services/invoiceService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();
const LeadService = require('../services/leadService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const ProbeService = require('../services/probeService');
const MonitorService = require('../services/monitorService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const loginHistoryService = require('../services/loginHistoryService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const axios = require('axios');
const UserService = require('../services/userService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();
const NotificationService = require('../services/notificationService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();
const PerformanceTrackerMetricService = require('../services/performanceTrackerMetricService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const ProbeService = require('../services/probeService');
const MonitorService = require('../services/monitorService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const ReportService = require('../services/reportService');
const { isAuthorized } = require('../middlewares/authorization');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const ScheduleService = require('../services/scheduleService');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const request = require('request');
const IntegrationService = require('../services/integrationService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const SmsTemplateService = require('../services/smsTemplateService');

View File

@@ -1,4 +1,3 @@
const express = require('express');
const StatusPageService = require('../services/statusPageService');
const MonitorService = require('../services/monitorService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();
const { isAuthorized } = require('../middlewares/authorization');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const SubscriberAlertService = require('../services/subscriberAlertService');
const path = require('path');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const IncidentService = require('../services/incidentService');
const UserService = require('../services/userService');

View File

@@ -1,5 +1,3 @@
const express = require('express');
const router = express.Router();

View File

@@ -1,5 +1,3 @@
const express = require('express');
const ZapierService = require('../services/zapierService');
const MonitorService = require('../services/monitorService');

View File

@@ -1,5 +1,3 @@
module.exports = {
Call: 'call',
Email: 'email',

View File

@@ -1,5 +1,3 @@
const mongoose = require('mongoose');
const logger = require('./logger');
const mongoUrl =

View File

@@ -1,5 +1,3 @@
module.exports = {
domains: ['hackerbay.io', 'fyipe.com'],
};

View File

@@ -1,5 +1,3 @@
module.exports = {
paymentPrivateKey:
process.env['STRIPE_PRIVATE_KEY'] || 'sk_test_YxwnzywggtAd8jDaHecNmHiN',

View File

@@ -1,5 +1,3 @@
module.exports = {
getPlans() {
//if in testing.

View File

@@ -1,5 +1,3 @@
module.exports = {
REALTIME_URL: process.env['REALTIME_URL'],
};

View File

@@ -1,5 +1,3 @@
module.exports = {
IS_SAAS_SERVICE: process.env['IS_SAAS_SERVICE'] === 'true' ? true : false,
IS_TESTING: process.env['IS_TESTING'] === 'true' ? true : false,

View File

@@ -1,5 +1,3 @@
module.exports = {
CLIENT_ID: process.env['CLIENT_ID'] || '3133949145.437395941636',
API_ROUTE: process.env['API_ROUTE'] || 'https://fyipe.com/api',

View File

@@ -1,5 +1,3 @@
module.exports = {
attachments: [
{

View File

@@ -1,4 +1,3 @@
// Initial colors for the status page
module.exports = {
default: {

View File

@@ -1,5 +1,3 @@
//Note: This should go into a DB later.
module.exports = [

View File

@@ -1,4 +1,3 @@
const mongoose = require('../config/db');
const ProjectService = require('../services/projectService');
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;

View File

@@ -1,4 +1,3 @@
const ApplicationScannerService = require('../services/applicationScannerService');
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;
const ErrorService = require('../services/errorService');

View File

@@ -1,5 +1,3 @@
const url = require('url');
const _ = require('lodash');
const isValidMongoObjectId = require('../config/db').Types.ObjectId.isValid;

View File

@@ -1,5 +1,3 @@
const apiMiddleware = require('./api');
const SendErrorResponse = require('../middlewares/response').sendErrorResponse;

View File

@@ -1,4 +1,3 @@
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;
module.exports = {

View File

@@ -1,4 +1,3 @@
const ContainerScannerService = require('../services/containerScannerService');
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;
const ErrorService = require('../services/errorService');

View File

@@ -1,4 +1,3 @@
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;
const ErrorService = require('../services/errorService');
module.exports = {

View File

@@ -1,4 +1,3 @@
const ProbeService = require('../services/probeService');
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;
const ErrorService = require('../services/errorService');

View File

@@ -1,5 +1,3 @@
const ProjectService = require('../services/projectService');
const ErrorService = require('../services/errorService');
const url = require('url');

View File

@@ -1,5 +1,3 @@
const Mongoose = require('mongoose');
const mongoose = require('../config/db');
const JsonToCsv = require('./jsonToCsv');

View File

@@ -1,4 +1,3 @@
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;
const ErrorService = require('../services/errorService');
const CLUSTER_KEY = process.env.CLUSTER_KEY;

View File

@@ -1,5 +1,3 @@
const { GridFsStorage } = require('multer-gridfs-storage');
const crypto = require('crypto');

View File

@@ -1,5 +1,3 @@
const jwtSecretKey = process.env['JWT_SECRET'];
const jwt = require('jsonwebtoken');
const url = require('url');

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,5 +1,3 @@
const mongoose = require('../config/db');
const Schema = mongoose.Schema;

View File

@@ -1,4 +1,3 @@
module.exports = {
//Description: Create new user entry on airtable.
//Params:

View File

@@ -1,5 +1,3 @@
module.exports = {
/**
* gets the schedules to use for alerts

View File

@@ -1,4 +1,3 @@
module.exports = {
//Description: Create new project for user.
//Params:

View File

@@ -1,4 +1,3 @@
module.exports = {
findOneBy: async function(query) {
const gfs = await Grid(mongoose.connection.db, mongoose.mongo);

View File

@@ -1,5 +1,3 @@
module.exports = {
//Description: Call this fuction to retrieve list of invoices for a customer.
//Params:

View File

@@ -1,5 +1,3 @@
module.exports = {
//Description: Create new project for user.
//Params:

View File

@@ -1,5 +1,3 @@
module.exports = {
/**
* @method getMostActiveMembers

View File

@@ -1,5 +1,3 @@
module.exports = {
findBy: async function({ query, skip, limit, populate, select }) {
if (!skip) skip = 0;

View File

@@ -1,5 +1,3 @@
module.exports = {
//Description: Get all team members of Project or Subproject.
//Params:

View File

@@ -1,4 +1,3 @@
const incidentSMSActionModel = require('../models/incidentSMSAction');
const twilio = require('twilio');
const SmsSmtpService = require('./smsSmtpService');

View File

@@ -1,5 +1,3 @@
module.exports = {
// Description: Checks if user email is vaild Params:
// Param 1: email.

View File

@@ -1,5 +1,3 @@
module.exports = {
findBy: async function({ query, select, populate }) {
if (!query) {

View File

@@ -1,4 +1,3 @@
const getApi = require('../utils/api').getApi;
const ErrorService = require('../utils/errorService');
const ContainerSecurity = require('./containerSecurity');

Some files were not shown because too many files have changed in this diff Show More