{"id":25434610,"url":"https://github.com/dipto1971/callcenter_queue_project","last_synced_at":"2026-07-17T13:33:33.890Z","repository":{"id":195716417,"uuid":"693493184","full_name":"Dipto1971/CallCenter_Queue_Project","owner":"Dipto1971","description":"Call_Center customer service providing system using Queue","archived":false,"fork":false,"pushed_at":"2023-09-19T07:17:24.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T21:13:14.600Z","etag":null,"topics":["data-structures","javascript-applications","queue-manager"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dipto1971.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-19T06:22:23.000Z","updated_at":"2024-05-10T09:54:20.000Z","dependencies_parsed_at":"2023-09-19T10:36:14.783Z","dependency_job_id":null,"html_url":"https://github.com/Dipto1971/CallCenter_Queue_Project","commit_stats":null,"previous_names":["dipto1971/callcenter_queue_project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dipto1971/CallCenter_Queue_Project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dipto1971%2FCallCenter_Queue_Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dipto1971%2FCallCenter_Queue_Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dipto1971%2FCallCenter_Queue_Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dipto1971%2FCallCenter_Queue_Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dipto1971","download_url":"https://codeload.github.com/Dipto1971/CallCenter_Queue_Project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dipto1971%2FCallCenter_Queue_Project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35584021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-17T02:00:06.162Z","response_time":116,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-structures","javascript-applications","queue-manager"],"created_at":"2025-02-17T06:18:02.700Z","updated_at":"2026-07-17T13:33:33.848Z","avatar_url":"https://github.com/Dipto1971.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Virtual Call Center Project\n\nThis 'Data Structure' project implements a virtual call center with the ability to receive, assign, and manage customer calls using both C++(Basic) and JavaScript(Advanced) programming languages. The call center consists of multiple servers that handle customer calls for a fixed duration and save call history. It utilizes queues and asynchronous programming concepts to efficiently manage calls and server resources.\n\n## Table of Contents\n- [Project Overview (C++)](#project-overview-c)\n- [Key Features of JavaScript Upgrade](#key-features-of-javascript-upgrade)\n- [Project Structure](#project-structure)\n- [How to Use](#how-to-use)\n- [Sample Usage](#sample-usage)\n- [Contributor](#contributor)\n- [License](#license)\n\n## Project Overview (C++)\n\nA virtual call center is a centralized system used for receiving and transmitting a large volume of customer requests via telephone. The original C++ version of this project simulates the core functionalities of such a call center and includes the following features:\n\n1. Enqueueing customer calls into a queue.\n2. Automatically assigning calls to available servers based on server load.\n3. Maintaining call history for each server using a stack.\n4. Monitoring server availability and automatically freeing servers after call completion.\n5. Manually forwarding pending calls to available servers.\n\nThe project is implemented in C++ and uses data structures like linked lists, stacks, and queues to efficiently manage customer calls and server resources.\n\n## Key Features of JavaScript Upgrade\n\nThe JavaScript version of the virtual call center retains all the features of the original C++ project while introducing significant improvements:\n\n1. **Asynchronous Processing**: The JavaScript version employs asynchronous programming using `async/await` to handle call durations. This ensures that calls are managed without blocking the main program thread, providing a more realistic and responsive simulation.\n\n2. **Promises**: Promises are used in JavaScript to manage asynchronous operations. The `await this.wait(ms)` function returns a promise, allowing for smoother execution and efficient handling of calls.\n\n3. **User Interaction**: While both versions provide a menu-driven user interface, the JavaScript version uses asynchronous input/output through the `prompt` function, aligning with JavaScript's event-driven nature. This enhances the user experience.\n\n4. **Time Management**: JavaScript utilizes `Date.now()` for timestamping events, while C++ employs `time(nullptr)`. Both versions track the time left for servers to become available after handling calls, enhancing the realism of the simulation.\n\n## Project Structure\n\nThe project consists of the following components:\n\n- `main.js`: The main program for the JavaScript version that interacts with the virtual call center.\n- `Call` class (JavaScript) / `Call` struct (C++): Represents an individual customer call, including ID, enqueue time, and duration.\n- `Server` class (JavaScript) / `Server` struct (C++): Represents a server, including availability, call history array (JavaScript) / stack (C++), call count, and busy time.\n- `VirtualCallCenter` class (JavaScript) / `VirtualCallCenter` struct (C++): Manages the entire call center, including an array of servers and a customer call queue.\n- Functions/methods for initializing, enqueuing calls, updating server status, checking time left for servers, manually forwarding calls, and displaying call counts.\n\n## How to Use\n\nFollow the on-screen menu to interact with the virtual call center. The JavaScript version can be executed using Node.js.\n\n## Sample Usage\n\nHere's a sample interaction with the JavaScript-based virtual call center:\n\n```plaintext\nMenu:\n1. Enter a Call (Automatic Assignment)\n2. Check Total Pending Calls\n3. Check Time Left for Servers\n4. Forward Calls Manually\n5. Display Call Counts for Servers\n6. Exit\n\nEnter your choice: 1\nEnter the call duration (in seconds): 300\nCall 1 added to the queue. Duration: 300 seconds.\n\nEnter your choice: 4\nCall 2 manually assigned to Server 1. Duration: 300 seconds.\n\nEnter your choice: 6\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipto1971%2Fcallcenter_queue_project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdipto1971%2Fcallcenter_queue_project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipto1971%2Fcallcenter_queue_project/lists"}