|
|
@@ -202,7 +202,6 @@ class MessageRecordController {
|
|
|
*/
|
|
|
public getOverallStatistics = async (req: Request, res: Response): Promise<Response> => {
|
|
|
try {
|
|
|
- console.log("getOverallStatistics");
|
|
|
const stats = await this.messageRecordService.getOverallStatistics();
|
|
|
return res.status(200).json({ success: true, data: stats });
|
|
|
} catch (error: any) {
|
|
|
@@ -218,7 +217,6 @@ class MessageRecordController {
|
|
|
*/
|
|
|
public getStatisticsByActivity = async (req: Request, res: Response): Promise<Response> => {
|
|
|
try {
|
|
|
- console.log("getStatisticsByActivity");
|
|
|
const stats = await this.messageRecordService.getStatisticsByActivity();
|
|
|
return res.status(200).json({ success: true, data: stats });
|
|
|
} catch (error: any) {
|
|
|
@@ -234,7 +232,6 @@ class MessageRecordController {
|
|
|
*/
|
|
|
public getStatisticsByStrategy = async (req: Request, res: Response): Promise<Response> => {
|
|
|
try {
|
|
|
- console.log("getStatisticsByStrategy");
|
|
|
const stats = await this.messageRecordService.getStatisticsByStrategy();
|
|
|
return res.status(200).json({ success: true, data: stats });
|
|
|
} catch (error: any) {
|
|
|
@@ -250,7 +247,6 @@ class MessageRecordController {
|
|
|
*/
|
|
|
public getStatisticsByTemplate = async (req: Request, res: Response): Promise<Response> => {
|
|
|
try {
|
|
|
- console.log("getStatisticsByTemplate");
|
|
|
const stats = await this.messageRecordService.getStatisticsByTemplate();
|
|
|
return res.status(200).json({ success: true, data: stats });
|
|
|
} catch (error: any) {
|
|
|
@@ -266,7 +262,6 @@ class MessageRecordController {
|
|
|
*/
|
|
|
public getDailySentTrends = async (req: Request, res: Response): Promise<Response> => {
|
|
|
try {
|
|
|
- console.log("getDailySentTrends");
|
|
|
const stats = await this.messageRecordService.getDailySentTrends();
|
|
|
return res.status(200).json({ success: true, data: stats });
|
|
|
} catch (error: any) {
|
|
|
@@ -282,7 +277,6 @@ class MessageRecordController {
|
|
|
*/
|
|
|
public getAverageDeliveryTime = async (req: Request, res: Response): Promise<Response> => {
|
|
|
try {
|
|
|
- console.log("getAverageDeliveryTime");
|
|
|
const stats = await this.messageRecordService.getAverageDeliveryTime();
|
|
|
return res.status(200).json({ success: true, data: stats });
|
|
|
} catch (error: any) {
|