Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/docs.7/contact/
Upload File :
Current File : /home/infinitibizsol/.trash/docs.7/contact/employee.js

/**
 * @swagger
 * components:
 *   schemas:
 *     Employee:
 *       type: object
 *       required:
 *         - company
 *         - title
 *         - street
 *         - city
 *         - state_or_province
 *         - country
 *         - zip_code
 *         - industry
 *         - occupation
 *         - employed_from
 *         - employee_first_name
 *         - employee_last_name
 *         - add_number
 *         - add_email
 *         - line_of_business
 *         - expiration_premium
 *         - term
 *         - related_policy
 *         - x_date_description
 *         - contact_id
 *       properties:
 *         company:
 *           type: string
 *           description: The name of the company
 *         title:
 *           type: string
 *           description: The title of the employee
 *         street:
 *           type: string
 *           description: The street address of the company
 *         apt_or_suite:
 *           type: string
 *           description: The apartment or suite number (if applicable)
 *         city:
 *           type: string
 *           description: The city where the company is located
 *         state_or_province:
 *           type: string
 *           description: The state or province where the company is located
 *         country:
 *           type: string
 *           description: The country where the company is located
 *         zip_code:
 *           type: number
 *           description: The ZIP code of the company's location
 *         employer_web_page:
 *           type: string
 *           description: The web page of the company
 *         industry:
 *           type: string
 *           description: The industry in which the company operates
 *         occupation:
 *           type: string
 *           description: The occupation of the employee
 *         employed_from:
 *           type: string
 *           description: The start date of the employment
 *         employed_to:
 *           type: string
 *           description: The end date of the employment (if applicable)
 *         employee_first_name:
 *           type: string
 *           description: The first name of the employee
 *         employee_last_name:
 *           type: string
 *           description: The last name of the employee
 *         add_number:
 *           type: array
 *           items:
 *             type: object
 *             properties:
 *               value:
 *                 type: string
 *                 description: The phone number of the company
 *               type:
 *                 type: string
 *                 description: The type of phone number (e.g., office, mobile)
 *               ext:
 *                 type: string
 *                 description: The phone extension (if applicable)
 *           description: The phone numbers of the company
 *         add_email:
 *           type: array
 *           items:
 *             type: object
 *             properties:
 *               value:
 *                 type: string
 *                 description: The email address of the company
 *               type:
 *                 type: string
 *                 description: The type of email address (e.g., work, personal)
 *               ext:
 *                 type: string
 *                 description: The email extension (if applicable)
 *           description: The email addresses of the company
 *         comments:
 *           type: string
 *           description: Additional comments about the employment
 *         line_of_business:
 *           type: string
 *           description: The line of business related to the policy
 *         expiration_premium:
 *           type: string
 *           description: The expiration premium amount for the policy
 *         term:
 *           type: array
 *           items:
 *             type: string
 *           description: The terms of the policy
 *         related_policy:
 *           type: string
 *           description: The related policy identifier
 *         x_date_description:
 *           type: string
 *           description: A description of the X date
 *         contact_id:
 *           type: string
 *           description: The ID of the associated contact
 *       example:
 *         company: "Example Company"
 *         title: "CEO"
 *         street: "123 Main St"
 *         apt_or_suite: "Suite 456"
 *         city: "AnyTown"
 *         state_or_province: "AnyState"
 *         country: "AnyCountry"
 *         zip_code: 12345
 *         employer_web_page: "http://www.example.com"
 *         industry: "Technology"
 *         occupation: "Software Engineer"
 *         employed_from: "2022-01-01"
 *         employed_to: "2023-01-01"
 *         employee_first_name: "John"
 *         employee_last_name: "Doe"
 *         add_number:
 *           - value: "555-1234"
 *             type: "office"
 *             ext: "123"
 *           - value: "555-5678"
 *             type: "mobile"
 *             ext: ""
 *         add_email:
 *           - value: "john.doe@example.com"
 *             type: "work"
 *             ext: ""
 *           - value: "john.doe@personal.com"
 *             type: "personal"
 *             ext: ""
 *         comments: "Great place to work."
 *         line_of_business: "Insurance"
 *         expiration_premium: "1000.00"
 *         term: ["Monthly", "Annual"]
 *         related_policy: "POL123456"
 *         x_date_description: "Next review date in January"
 *         contact_id: "6679d98f6bc36cd891ccab49"
 *     UpdateResponse:
 *       type: object
 *       properties:
 *         message:
 *           type: string
 *           example: "Data updated successfully"
 *     DeleteResponse:
 *       type: object
 *       properties:
 *         message:
 *           type: string
 *           example: "entry_name and related data deleted successfully"
 *   securitySchemes:
 *     bearerAuth:
 *       type: http
 *       scheme: bearer
 *       bearerFormat: JWT
 */

/**
 * @swagger
 * tags:
 *   - name: Employee
 *     description: Operations related to Employee
 */

/**
 * @swagger
 * /employee/list:
 *   get:
 *     summary: Returns the list of Employers
 *     tags: [Employee]
 *     security:
 *       - bearerAuth: []
 *     responses:
 *       200:
 *         description: The list of Employers
 *         content:
 *           application/json:
 *             schema:
 *               type: array
 *               items:
 *                 $ref: '#/components/schemas/Employee'
 */

/**
 * @swagger
 * /employee/add:
 *   post:
 *     summary: Create a new Employee entry
 *     tags: [Employee]
 *     security:
 *       - bearerAuth: []
 *     requestBody:
 *       required: true
 *       content:
 *         application/json:
 *           schema:
 *             $ref: '#/components/schemas/Employee'
 *     responses:
 *       201:
 *         description: The Employee entry was successfully created
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/Employee'
 */

/**
 * @swagger
 * /employee/edit/{id}:
 *   put:
 *     summary: Update the Employee entry by ID
 *     tags: [Employee]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: path
 *         name: id
 *         schema:
 *           type: string
 *         required: true
 *         description: The ID of the Employee entry
 *     requestBody:
 *       required: true
 *       content:
 *         application/json:
 *           schema:
 *             $ref: '#/components/schemas/Employee'
 *     responses:
 *       200:
 *         description: The Employee entry was successfully updated
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/UpdateResponse'
 */

/**
 * @swagger
 * /employee/delete/{id}:
 *   delete:
 *     summary: Delete the Employee entry by ID
 *     tags: [Employee]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: path
 *         name: id
 *         schema:
 *           type: string
 *         required: true
 *         description: The ID of the Employee entry
 *     responses:
 *       200:
 *         description: The Employee entry was successfully deleted
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/DeleteResponse'
 */
"use strict";

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists