Compare commits

..

3 Commits

Author SHA1 Message Date
Elvira.Kulikova
7b9183fd6b fix bugs
Some checks failed
platform/multy-stub/pipeline/pr-master There was a failure building this commit
2025-03-19 17:36:40 +03:00
Elvira.Kulikova
1a63f53fef Merge branch 'master' into freetracker_customer 2025-03-18 17:19:49 +03:00
Elvira.Kulikova
909662e92e trips
Some checks failed
ms-devops/pipeline/pr-master There was a failure building this commit
2025-02-07 19:24:13 +03:00
5 changed files with 862 additions and 28 deletions

View File

@ -342,16 +342,7 @@ const uploadImage = async (file, accessToken) => {
}
}
const COLORS_MAP = ['white', 'black', 'silver', 'gray', 'beige-brown', 'red', 'blue', 'green']
const getColorName = (colorKey) => {
if (typeof colorKey === 'number' && COLORS_MAP[colorKey]) {
return COLORS_MAP[colorKey]
}
return colorKey
}
const analyzeImage = async (fileId, token, imgProps) => {
const analyzeImage = async (fileId, token) => {
const response = await fetch(`${GIGA_CHAT_API}/chat/completions`, {
method: "POST",
headers: {
@ -366,26 +357,11 @@ const analyzeImage = async (fileId, token, imgProps) => {
messages: [
{
role: "system",
content: (await getSystemPrompt()) ?? `Ты эксперт по оценке степени загрязнения автомобилей. Твоя задача — анализировать фотографии машин и определять степень их загрязнения.
Тебе предоставляют фотографию, где явно выделяется одна машина (например, она расположена в центре и имеет больший размер в кадре по сравнению с остальными).
ВАЖНО: Твой ответ ДОЛЖЕН быть СТРОГО в формате JSON и содержать ТОЛЬКО следующие поля:
{
"value": число от 0 до 10 (целое или с одним знаком после запятой),
"description": "текстовое описание на русском языке"
}.
Правила:
1. Поле "value":
- Должно быть числом от 0 до 10 (0 = машина абсолютно чистая, 10 = машина максимально грязная) ИЛИ undefined (если не удалось оценить);
2. Поле "description":
- Должно содержать 2-3 предложения на русском языке;
- Обязательно указать конкретные признаки загрязнения;
- Объяснить, почему выставлен именно такой балл.
- Должно быть связано только с автомобилем.
НЕ ДОБАВЛЯЙ никаких дополнительных полей или комментариев вне JSON структуры. НЕ ИСПОЛЬЗУЙ markdown форматирование. ОТВЕТ ДОЛЖЕН БЫТЬ ВАЛИДНЫМ JSON. Если на фотографии нельзя явно выделить одну машину, то ОЦЕНКА ДОЛЖНА ИМЕТЬ ЗНАЧЕНИЕ undefined и в описании должно быть указано, что по фотографии не удалось оценить степень загрязнения автомобиля, при этом НЕ ОПИСЫВАЙ НИЧЕГО ДРУГОГО КРОМЕ АВТОМОБИЛЯ`,
content: (await getSystemPrompt()) ?? `Ты эксперт по оценке степени загрязнения автомобилей. Твоя задача — анализировать фотографии машин и определять степень их загрязнения. ВАЖНО: Твой ответ ДОЛЖЕН быть СТРОГО в формате JSON и содержать ТОЛЬКО следующие поля: { "value": число от 0 до 10 (целое или с одним знаком после запятой), "description": "текстовое описание на русском языке" } Правила: 1. Поле "value": - Должно быть числом от 0 до 10 - 0 = машина абсолютно чистая - 10 = машина максимально грязная 2. Поле "description": - Должно содержать 2-3 предложения на русском языке - Обязательно указать конкретные признаки загрязнения - Объяснить почему выставлен именно такой балл НЕ ДОБАВЛЯЙ никаких дополнительных полей или комментариев вне JSON структуры. НЕ ИСПОЛЬЗУЙ markdown форматирование. ОТВЕТ ДОЛЖЕН БЫТЬ ВАЛИДНЫМ JSON. Если на фотографии нет одной машины, то оценка должна быть 0 и в описании должно быть указано, почему не удалось оценить.`,
},
{
role: "user",
content: `Дай оценку для приложенного файла изображения согласно структуре, ответ должен быть на русском языке. Учти, что владелец указал, что исходный цвет машины: ${getColorName(imgProps.color)}`,
content: 'Дай оценку для приложенного файла изображения согласно структуре, ответ должен быть на русском языке',
attachments: [fileId],
},
],
@ -430,7 +406,7 @@ router.post('/:id/upload-car-img', upload.single('file'), async (req, res) => {
const { access_token } = await getToken(req, res)
const fileId = await uploadImage(req.file, access_token)
const { value, description } = await analyzeImage(fileId, access_token, { carColor: order.carColor }) ?? {}
const { value, description } = await analyzeImage(fileId, access_token) ?? {}
const orderCarImg = await OrderCarImgModel.create({
image: convertFileToBase64(req.file),

View File

@ -0,0 +1,22 @@
const Router = require('express').Router;
const router = Router()
const timer = (_req, _res, next) => {
setTimeout(() => next(), 500)
}
router.use(timer)
router.get(
'/trips',
(req, res) =>
res.send(require(`./json/trips-success.json`))
)
router.get('/cars/:id', (req, res) => {
res.send(require(`./json/cars-success.json`))
})
module.exports = router

View File

@ -0,0 +1,28 @@
{
"success": true,
"errors": [],
"warnings":[],
"body": [
{
"id": 1,
"car": "Mersedes",
"driver": "Иванов Иван Иванович",
"telephone": "+7 9600376666",
"upgradeNum": "Челябинск"
},
{
"id": 2,
"car": "Mersedes",
"driver": "Иванов Иван Иванович",
"telephone": "+7 9600376666",
"upgradeNum": "Челябинск"
},
{
"id": 3,
"car": "Mersedes",
"driver": "Иванов Иван Иванович",
"telephone": "+7 9600376666",
"upgradeNum": "Челябинск"
}
]
}

View File

@ -0,0 +1,807 @@
{
"success": true,
"errors": [],
"warnings":[],
"body": [
{
"key": 0,
"trip": "Владисвосток-Москва",
"count": 99,
"date_start": "Mon, 29 Jun 2020 14:13:16 GMT",
"date_end": "Wed, 15 Jul 2020 09:45:23 GMT",
"created_at": "Thu, 01 Dec 2022 15:55:14 GMT"
},
{
"key": 1,
"trip": "Казань-Москва",
"count": 85,
"date_start": "Mon, 17 Oct 2022 09:46:21 GMT",
"date_end": "Fri, 28 Oct 2022 16:30:12 GMT",
"created_at": "Wed, 14 Jun 2023 03:06:52 GMT"
},
{
"key": 2,
"trip": "Казань-Сызрань",
"count": 48,
"date_start": "Thu, 01 Sep 2022 04:28:45 GMT",
"date_end": "Mon, 12 Sep 2022 11:15:33 GMT",
"created_at": "Mon, 07 Oct 2024 01:37:16 GMT"
},
{
"key": 3,
"trip": "Владивосток-Владимир",
"count": 72,
"date_start": "Wed, 26 Jun 2024 16:22:43 GMT",
"date_end": "Tue, 09 Jul 2024 13:45:28 GMT",
"created_at": "Sun, 11 Dec 2022 16:12:07 GMT"
},
{
"key": 4,
"trip": "Владивосток-Вологда",
"count": 29,
"date_start": "Mon, 29 Jun 2020 17:37:33 GMT",
"date_end": "Thu, 16 Jul 2020 08:22:15 GMT",
"created_at": "Thu, 26 Mar 2020 01:18:31 GMT"
},
{
"key": 5,
"trip": "Москва-Вологда",
"count": 78,
"date_start": "Fri, 05 May 2023 03:42:20 GMT",
"date_end": "Wed, 17 May 2023 19:30:45 GMT",
"created_at": "Tue, 21 Sep 2021 13:54:18 GMT"
},
{
"key": 6,
"trip": "Казань-Вологда",
"count": 36,
"date_start": "Sun, 02 Oct 2022 14:35:34 GMT",
"date_end": "Sat, 15 Oct 2022 10:20:18 GMT",
"created_at": "Sun, 11 Sep 2022 12:27:29 GMT"
},
{
"key": 7,
"trip": "Казань-Тольятти",
"count": 7,
"date_start": "Tue, 16 Feb 2021 16:17:32 GMT",
"date_end": "Mon, 01 Mar 2021 14:45:22 GMT",
"created_at": "Tue, 02 Mar 2021 02:15:25 GMT"
},
{
"key": 8,
"trip": "Чита-Тольятти",
"count": 29,
"date_start": "Mon, 16 Sep 2024 17:48:59 GMT",
"date_end": "Sun, 29 Sep 2024 09:30:15 GMT",
"created_at": "Thu, 02 Jul 2020 17:12:02 GMT"
},
{
"key": 9,
"trip": "Чита-Тюмень",
"count": 94,
"date_start": "Wed, 04 May 2022 01:36:51 GMT",
"date_end": "Tue, 17 May 2022 18:20:33 GMT",
"created_at": "Mon, 28 Oct 2024 04:00:12 GMT"
},
{
"key": 10,
"trip": "Москва-Тюмень",
"count": 12,
"date_start": "Thu, 24 Oct 2024 05:48:10 GMT",
"date_end": "Wed, 06 Nov 2024 16:25:40 GMT",
"created_at": "Sun, 30 Aug 2020 05:14:05 GMT"
},
{
"key": 11,
"trip": "Казань-Тольятти",
"count": 49,
"date_start": "Mon, 22 Apr 2024 15:59:19 GMT",
"date_end": "Sun, 05 May 2024 12:30:45 GMT",
"created_at": "Tue, 22 Dec 2020 09:51:24 GMT"
},
{
"key": 12,
"trip": "Владивосток-Владимир",
"count": 40,
"date_start": "Thu, 30 May 2024 01:48:52 GMT",
"date_end": "Wed, 12 Jun 2024 20:15:33 GMT",
"created_at": "Sat, 28 Jan 2023 14:11:25 GMT"
},
{
"key": 13,
"trip": "Самара-Тюмень",
"count": 47,
"date_start": "Sun, 22 Nov 2020 13:11:01 GMT",
"date_end": "Sat, 05 Dec 2020 09:45:28 GMT",
"created_at": "Mon, 17 Jan 2022 16:24:57 GMT"
},
{
"key": 14,
"trip": "Казань-Вологда",
"count": 32,
"date_start": "Thu, 08 Dec 2022 03:45:34 GMT",
"date_end": "Wed, 21 Dec 2022 15:20:18 GMT",
"created_at": "Wed, 05 Jun 2024 08:59:22 GMT"
},
{
"key": 15,
"trip": "Самара-Казань",
"count": 61,
"date_start": "Sat, 02 May 2020 19:18:10 GMT",
"date_end": "Fri, 15 May 2020 16:30:45 GMT",
"created_at": "Sat, 12 Aug 2023 01:13:15 GMT"
},
{
"key": 16,
"trip": "Тюмень-Казань",
"count": 99,
"date_start": "Tue, 22 Dec 2020 08:05:09 GMT",
"date_end": "Mon, 04 Jan 2021 14:25:33 GMT",
"created_at": "Sun, 15 Jan 2023 09:27:02 GMT"
},
{
"key": 17,
"trip": "Казань-Тольятти",
"count": 29,
"date_start": "Thu, 15 Dec 2022 07:04:50 GMT",
"date_end": "Wed, 28 Dec 2022 11:40:15 GMT",
"created_at": "Wed, 22 Mar 2023 23:11:56 GMT"
},
{
"key": 18,
"trip": "Тюмень-Вологда",
"count": 72,
"date_start": "Wed, 28 Dec 2022 11:36:57 GMT",
"date_end": "Tue, 10 Jan 2023 18:20:45 GMT",
"created_at": "Sun, 06 Mar 2022 12:22:23 GMT"
},
{
"key": 19,
"trip": "Тюмень-Ижевск",
"count": 44,
"date_start": "Tue, 30 Jun 2020 05:32:53 GMT",
"date_end": "Mon, 13 Jul 2020 12:15:30 GMT",
"created_at": "Mon, 22 Apr 2024 11:49:06 GMT"
},
{
"key": 20,
"trip": "Самара-Тюмень",
"count": 86,
"date_start": "Sat, 29 Aug 2020 02:28:28 GMT",
"date_end": "Fri, 11 Sep 2020 09:40:18 GMT",
"created_at": "Sat, 23 Mar 2024 02:57:58 GMT"
},
{
"key": 21,
"trip": "Москва-Вологда",
"count": 67,
"date_start": "Wed, 28 Aug 2024 14:19:06 GMT",
"date_end": "Tue, 10 Sep 2024 21:30:45 GMT",
"created_at": "Fri, 29 Apr 2022 20:59:06 GMT"
},
{
"key": 22,
"trip": "Чита-Тольятти",
"count": 5,
"date_start": "Thu, 07 Oct 2021 03:54:24 GMT",
"date_end": "Wed, 20 Oct 2021 10:25:33 GMT",
"created_at": "Mon, 01 Mar 2021 20:24:58 GMT"
},
{
"key": 23,
"trip": "Москва-Ижевск",
"count": 52,
"date_start": "Sun, 09 May 2021 05:00:06 GMT",
"date_end": "Sat, 22 May 2021 11:45:20 GMT",
"created_at": "Sun, 25 Aug 2024 07:43:58 GMT"
},
{
"key": 24,
"trip": "Москва-Пермь",
"count": 56,
"date_start": "Thu, 22 Apr 2021 01:45:23 GMT",
"date_end": "Wed, 05 May 2021 08:30:15 GMT",
"created_at": "Tue, 14 Apr 2020 14:34:44 GMT"
},
{
"key": 25,
"trip": "Владивосток-Владимир",
"count": 84,
"date_start": "Sun, 30 May 2021 06:20:13 GMT",
"date_end": "Sat, 12 Jun 2021 13:15:40 GMT",
"created_at": "Sat, 02 Oct 2021 16:16:48 GMT"
},
{
"key": 26,
"trip": "Тюмень-Ижевск",
"count": 64,
"date_start": "Mon, 18 Mar 2024 03:50:05 GMT",
"date_end": "Sun, 31 Mar 2024 10:35:25 GMT",
"created_at": "Thu, 06 Aug 2020 10:22:30 GMT"
},
{
"key": 27,
"trip": "Самара-Тюмень",
"count": 52,
"date_start": "Sun, 20 Mar 2022 06:26:26 GMT",
"date_end": "Sat, 02 Apr 2022 13:20:15 GMT",
"created_at": "Wed, 15 May 2024 16:25:33 GMT"
},
{
"key": 28,
"trip": "Самара-Казань",
"count": 69,
"date_start": "Wed, 16 Sep 2020 23:18:39 GMT",
"date_end": "Tue, 29 Sep 2020 06:05:30 GMT",
"created_at": "Sun, 27 Aug 2023 10:13:51 GMT"
},
{
"key": 29,
"trip": "Владивосток-Вологда",
"count": 39,
"date_start": "Sat, 13 Jul 2024 16:41:31 GMT",
"date_end": "Fri, 26 Jul 2024 23:30:18 GMT",
"created_at": "Sun, 04 Apr 2021 10:16:17 GMT"
},
{
"key": 30,
"trip": "Москва-Тюмень",
"count": 15,
"date_start": "Mon, 12 Feb 2024 21:46:30 GMT",
"date_end": "Sun, 25 Feb 2024 04:35:22 GMT",
"created_at": "Mon, 25 Oct 2021 21:06:29 GMT"
},
{
"key": 31,
"trip": "Москва-Тюмень",
"count": 98,
"date_start": "Tue, 01 Oct 2024 12:54:27 GMT",
"date_end": "Mon, 14 Oct 2024 19:40:15 GMT",
"created_at": "Wed, 09 Mar 2022 03:46:32 GMT"
},
{
"key": 32,
"trip": "N",
"count": 44,
"date_start": "Wed, 08 Apr 2020 13:09:07 GMT",
"date_end": "Tue, 21 Apr 2020 20:00:33 GMT",
"created_at": "Wed, 01 Jan 2025 19:48:47 GMT"
},
{
"key": 33,
"trip": "Q",
"count": 23,
"date_start": "Wed, 09 Feb 2022 00:13:32 GMT",
"date_end": "Tue, 22 Feb 2022 07:05:20 GMT",
"created_at": "Sun, 19 Mar 2023 13:20:24 GMT"
},
{
"key": 34,
"trip": "Чита-Тюмень",
"count": 67,
"date_start": "Mon, 21 Oct 2024 14:57:27 GMT",
"date_end": "Sun, 03 Nov 2024 21:45:15 GMT",
"created_at": "Tue, 15 Nov 2022 17:33:15 GMT"
},
{
"key": 35,
"trip": "S",
"count": 28,
"date_start": "Wed, 18 Mar 2020 10:03:48 GMT",
"date_end": "Tue, 31 Mar 2020 16:50:33 GMT",
"created_at": "Thu, 23 May 2024 20:59:48 GMT"
},
{
"key": 36,
"trip": "Казань-Вологда",
"count": 82,
"date_start": "Sat, 24 Apr 2021 08:35:13 GMT",
"date_end": "Fri, 07 May 2021 15:25:40 GMT",
"created_at": "Tue, 24 Oct 2023 03:16:38 GMT"
},
{
"key": 37,
"trip": "Казань-Тольятти",
"count": 43,
"date_start": "Wed, 05 Oct 2022 20:10:30 GMT",
"date_end": "Tue, 18 Oct 2022 03:00:18 GMT",
"created_at": "Tue, 11 Jun 2024 22:41:02 GMT"
},
{
"key": 38,
"trip": "Москва-Тюмень",
"count": 56,
"date_start": "Thu, 06 Jan 2022 02:47:53 GMT",
"date_end": "Wed, 19 Jan 2022 09:35:25 GMT",
"created_at": "Mon, 06 Sep 2021 05:40:10 GMT"
},
{
"key": 39,
"trip": "Чита-Тольятти",
"count": 84,
"date_start": "Wed, 05 Jan 2022 06:42:08 GMT",
"date_end": "Tue, 18 Jan 2022 13:30:40 GMT",
"created_at": "Mon, 13 Apr 2020 02:45:40 GMT"
},
{
"key": 40,
"trip": "Самара-Казань",
"count": 51,
"date_start": "Mon, 12 Feb 2024 09:03:02 GMT",
"date_end": "Sun, 25 Feb 2024 15:50:33 GMT",
"created_at": "Tue, 14 May 2024 13:03:26 GMT"
},
{
"key": 41,
"trip": "Москва-Пермь",
"count": 58,
"date_start": "Fri, 19 May 2023 23:10:06 GMT",
"date_end": "Thu, 01 Jun 2023 06:00:20 GMT",
"created_at": "Sun, 05 Dec 2021 07:35:56 GMT"
},
{
"key": 42,
"trip": "Владивосток-Вологда",
"count": 46,
"date_start": "Thu, 18 Mar 2021 14:42:08 GMT",
"date_end": "Wed, 31 Mar 2021 21:30:45 GMT",
"created_at": "Fri, 02 Jul 2021 01:45:38 GMT"
},
{
"key": 43,
"trip": "Тюмень-Вологда",
"count": 92,
"date_start": "Sat, 01 Feb 2025 10:11:00 GMT",
"date_end": "Fri, 14 Feb 2025 17:00:33 GMT",
"created_at": "Mon, 05 Jul 2021 06:14:03 GMT"
},
{
"key": 44,
"trip": "E",
"count": 96,
"date_start": "Mon, 24 Feb 2020 19:09:06 GMT",
"date_end": "Sun, 08 Mar 2020 02:00:20 GMT",
"created_at": "Sun, 12 Apr 2020 04:59:22 GMT"
},
{
"key": 45,
"trip": "E",
"count": 3,
"date_start": "Sun, 18 Jun 2023 07:26:40 GMT",
"date_end": "Sat, 01 Jul 2023 14:15:25 GMT",
"created_at": "Sun, 18 Aug 2024 06:19:01 GMT"
},
{
"key": 46,
"trip": "E",
"count": 63,
"date_start": "Sat, 10 Apr 2021 13:23:55 GMT",
"date_end": "Fri, 23 Apr 2021 20:10:40 GMT",
"created_at": "Thu, 02 Apr 2020 16:26:15 GMT"
},
{
"key": 47,
"trip": "Москва-Тюмень",
"count": 16,
"date_start": "Wed, 23 Aug 2023 00:01:58 GMT",
"date_end": "Tue, 05 Sep 2023 06:50:33 GMT",
"created_at": "Fri, 16 Feb 2024 01:39:30 GMT"
},
{
"key": 48,
"trip": "Владивосток-Владимир",
"count": 36,
"date_start": "Tue, 25 Apr 2023 23:09:56 GMT",
"date_end": "Mon, 08 May 2023 06:00:20 GMT",
"created_at": "Sat, 17 Dec 2022 13:52:04 GMT"
},
{
"key": 49,
"trip": "Самара-Казань",
"count": 62,
"date_start": "Fri, 04 Oct 2024 11:01:56 GMT",
"date_end": "Thu, 17 Oct 2024 17:50:33 GMT",
"created_at": "Thu, 15 Feb 2024 02:39:03 GMT"
},
{
"key": 50,
"trip": "Москва-Тюмень",
"count": 65,
"date_start": "Thu, 18 Jun 2020 22:40:19 GMT",
"date_end": "Wed, 01 Jul 2020 05:30:15 GMT",
"created_at": "Mon, 28 Jun 2021 12:55:18 GMT"
},
{
"key": 51,
"trip": "Тюмень-Вологда",
"count": 17,
"date_start": "Tue, 08 Sep 2020 08:53:55 GMT",
"date_end": "Mon, 21 Sep 2020 15:40:30 GMT",
"created_at": "Thu, 19 Mar 2020 00:27:17 GMT"
},
{
"key": 52,
"trip": "Казань-Москва",
"count": 28,
"date_start": "Wed, 07 Sep 2022 20:41:37 GMT",
"date_end": "Tue, 20 Sep 2022 03:30:25 GMT",
"created_at": "Wed, 20 Apr 2022 04:36:43 GMT"
},
{
"key": 53,
"trip": "U",
"count": 36,
"date_start": "Mon, 22 May 2023 20:35:52 GMT",
"date_end": "Sun, 04 Jun 2023 03:25:40 GMT",
"created_at": "Tue, 20 Oct 2020 13:11:01 GMT"
},
{
"key": 54,
"trip": "S",
"count": 57,
"date_start": "Mon, 01 Jan 2024 12:53:55 GMT",
"date_end": "Sun, 14 Jan 2024 19:40:30 GMT",
"created_at": "Fri, 31 Jan 2025 10:15:04 GMT"
},
{
"key": 55,
"trip": "Казань-Сызрань",
"count": 27,
"date_start": "Thu, 03 Nov 2022 13:51:00 GMT",
"date_end": "Wed, 16 Nov 2022 20:40:15 GMT",
"created_at": "Wed, 03 Jun 2020 07:10:46 GMT"
},
{
"key": 56,
"trip": "N",
"count": 58,
"date_start": "Tue, 03 Nov 2020 10:27:49 GMT",
"date_end": "Mon, 16 Nov 2020 17:15:33 GMT",
"created_at": "Sat, 01 May 2021 08:40:29 GMT"
},
{
"key": 57,
"trip": "Владисвосток-Москва",
"count": 29,
"date_start": "Sun, 05 Jan 2020 00:10:45 GMT",
"date_end": "Sat, 18 Jan 2020 07:00:20 GMT",
"created_at": "Thu, 29 Jul 2021 08:04:38 GMT"
},
{
"key": 58,
"trip": "Казань-Тольятти",
"count": 22,
"date_start": "Wed, 05 Apr 2023 14:15:27 GMT",
"date_end": "Tue, 18 Apr 2023 21:05:15 GMT",
"created_at": "Fri, 06 Dec 2024 03:20:18 GMT"
},
{
"key": 59,
"trip": "Москва-Пермь",
"count": 8,
"date_start": "Fri, 18 Nov 2022 21:56:47 GMT",
"date_end": "Thu, 01 Dec 2022 04:45:30 GMT",
"created_at": "Tue, 07 Jul 2020 16:18:05 GMT"
},
{
"key": 60,
"trip": "Владисвосток-Москва",
"count": 29,
"date_start": "Sat, 06 Apr 2024 10:22:54 GMT",
"date_end": "Fri, 19 Apr 2024 17:10:40 GMT",
"created_at": "Wed, 21 Oct 2020 18:04:55 GMT"
},
{
"key": 61,
"trip": "Q",
"count": 55,
"date_start": "Mon, 28 Aug 2023 18:16:49 GMT",
"date_end": "Sun, 10 Sep 2023 01:05:33 GMT",
"created_at": "Mon, 29 Jul 2024 02:42:50 GMT"
},
{
"key": 62,
"trip": "Казань-Москва",
"count": 64,
"date_start": "Mon, 11 Dec 2023 13:50:59 GMT",
"date_end": "Sun, 24 Dec 2023 20:40:25 GMT",
"created_at": "Wed, 13 Jan 2021 18:49:04 GMT"
},
{
"key": 63,
"trip": "N",
"count": 36,
"date_start": "Tue, 29 Sep 2020 17:47:49 GMT",
"date_end": "Mon, 12 Oct 2020 00:35:30 GMT",
"created_at": "Sat, 05 Dec 2020 01:30:25 GMT"
},
{
"key": 64,
"trip": "Z",
"count": 36,
"date_start": "Tue, 26 May 2020 16:40:52 GMT",
"date_end": "Mon, 08 Jun 2020 23:30:25 GMT",
"created_at": "Thu, 25 Feb 2021 23:11:39 GMT"
},
{
"key": 65,
"trip": "Чита-Тольятти",
"count": 61,
"date_start": "Thu, 21 Sep 2023 19:54:17 GMT",
"date_end": "Wed, 04 Oct 2023 02:45:15 GMT",
"created_at": "Thu, 30 Mar 2023 15:33:19 GMT"
},
{
"key": 66,
"trip": "Владивосток-Вологда",
"count": 42,
"date_start": "Tue, 14 Apr 2020 15:50:34 GMT",
"date_end": "Mon, 27 Apr 2020 22:40:20 GMT",
"created_at": "Thu, 15 Apr 2021 02:35:05 GMT"
},
{
"key": 67,
"trip": "U",
"count": 75,
"date_start": "Thu, 10 Aug 2023 00:45:04 GMT",
"date_end": "Wed, 23 Aug 2023 07:35:30 GMT",
"created_at": "Wed, 09 Jun 2021 13:29:50 GMT"
},
{
"key": 68,
"trip": "Тюмень-Ижевск",
"count": 73,
"date_start": "Sat, 19 Mar 2022 00:00:59 GMT",
"date_end": "Fri, 01 Apr 2022 06:50:40 GMT",
"created_at": "Tue, 18 Apr 2023 11:39:45 GMT"
},
{
"key": 69,
"trip": "Казань-Тольятти",
"count": 27,
"date_start": "Thu, 15 Aug 2024 04:16:12 GMT",
"date_end": "Wed, 28 Aug 2024 11:05:25 GMT",
"created_at": "Wed, 02 Jun 2021 10:41:59 GMT"
},
{
"key": 70,
"trip": "Казань-Тольятти",
"count": 85,
"date_start": "Sun, 27 Sep 2020 23:18:20 GMT",
"date_end": "Sat, 10 Oct 2020 06:05:15 GMT",
"created_at": "Tue, 13 Apr 2021 06:32:10 GMT"
},
{
"key": 71,
"trip": "Москва-Тюмень",
"count": 85,
"date_start": "Mon, 23 Sep 2024 22:49:15 GMT",
"date_end": "Sun, 06 Oct 2024 05:40:30 GMT",
"created_at": "Sat, 09 Dec 2023 04:25:00 GMT"
},
{
"key": 72,
"trip": "Владисвосток-Москва",
"count": 54,
"date_start": "Fri, 05 Mar 2021 19:03:42 GMT",
"date_end": "Thu, 18 Mar 2021 01:50:25 GMT",
"created_at": "Sat, 07 Dec 2024 02:38:40 GMT"
},
{
"key": 73,
"trip": "Москва-Пермь",
"count": 93,
"date_start": "Wed, 16 Feb 2022 08:53:29 GMT",
"date_end": "Tue, 01 Mar 2022 15:40:15 GMT",
"created_at": "Mon, 18 Jan 2021 12:32:30 GMT"
},
{
"key": 74,
"trip": "Казань-Тольятти",
"count": 11,
"date_start": "Wed, 27 Jan 2021 14:00:04 GMT",
"date_end": "Tue, 09 Feb 2021 20:50:30 GMT",
"created_at": "Wed, 22 Apr 2020 14:49:30 GMT"
},
{
"key": 75,
"trip": "Казань-Москва",
"count": 92,
"date_start": "Wed, 23 Aug 2023 11:38:30 GMT",
"date_end": "Tue, 05 Sep 2023 18:25:15 GMT",
"created_at": "Sat, 21 May 2022 15:04:36 GMT"
},
{
"key": 76,
"trip": "Москва-Пермь",
"count": 7,
"date_start": "Tue, 31 May 2022 05:01:43 GMT",
"date_end": "Mon, 13 Jun 2022 11:50:30 GMT",
"created_at": "Tue, 22 Oct 2024 05:05:05 GMT"
},
{
"key": 77,
"trip": "Самара-Тюмень",
"count": 71,
"date_start": "Thu, 25 Jan 2024 10:34:25 GMT",
"date_end": "Wed, 07 Feb 2024 17:20:15 GMT",
"created_at": "Tue, 10 Mar 2020 22:40:26 GMT"
},
{
"key": 78,
"trip": "Москва-Пермь",
"count": 70,
"date_start": "Thu, 05 Jan 2023 11:57:02 GMT",
"date_end": "Wed, 18 Jan 2023 18:45:30 GMT",
"created_at": "Wed, 27 Sep 2023 08:44:01 GMT"
},
{
"key": 79,
"trip": "Тюмень-Казань",
"count": 68,
"date_start": "Fri, 18 Mar 2022 04:00:41 GMT",
"date_end": "Thu, 31 Mar 2022 10:50:25 GMT",
"created_at": "Tue, 25 Apr 2023 02:53:24 GMT"
},
{
"key": 80,
"trip": "Москва-Владивосток",
"count": 32,
"date_start": "Thu, 09 Mar 2023 20:34:19 GMT",
"date_end": "Wed, 22 Mar 2023 03:25:15 GMT",
"created_at": "Sun, 05 May 2024 13:34:05 GMT"
},
{
"key": 81,
"trip": "Москва-Владивосток",
"count": 32,
"date_start": "Fri, 09 Dec 2022 00:39:37 GMT",
"date_end": "Thu, 22 Dec 2022 07:30:25 GMT",
"created_at": "Thu, 03 Oct 2024 18:33:04 GMT"
},
{
"key": 82,
"trip": "E",
"count": 57,
"date_start": "Mon, 21 Mar 2022 09:02:45 GMT",
"date_end": "Sun, 03 Apr 2022 15:50:30 GMT",
"created_at": "Sun, 16 Oct 2022 07:03:06 GMT"
},
{
"key": 83,
"trip": "P",
"count": 5,
"date_start": "Tue, 05 Mar 2024 13:06:40 GMT",
"date_end": "Mon, 18 Mar 2024 19:55:25 GMT",
"created_at": "Sun, 18 Apr 2021 02:55:13 GMT"
},
{
"key": 84,
"trip": "Казань-Сызрань",
"count": 42,
"date_start": "Sun, 11 Aug 2024 02:05:46 GMT",
"date_end": "Sat, 24 Aug 2024 08:55:30 GMT",
"created_at": "Sun, 18 Oct 2020 18:39:33 GMT"
},
{
"key": 85,
"trip": "Казань-Тольятти",
"count": 48,
"date_start": "Fri, 07 Aug 2020 09:21:46 GMT",
"date_end": "Thu, 20 Aug 2020 16:10:30 GMT",
"created_at": "Wed, 22 Jul 2020 21:59:15 GMT"
},
{
"key": 86,
"trip": "Самара-Казань",
"count": 43,
"date_start": "Thu, 03 Dec 2020 21:51:58 GMT",
"date_end": "Wed, 16 Dec 2020 04:40:25 GMT",
"created_at": "Mon, 07 Nov 2022 18:42:21 GMT"
},
{
"key": 87,
"trip": "Москва-Тюмень",
"count": 50,
"date_start": "Mon, 20 Apr 2020 17:12:02 GMT",
"date_end": "Sun, 03 May 2020 00:00:30 GMT",
"created_at": "Fri, 10 Feb 2023 02:41:47 GMT"
},
{
"key": 88,
"trip": "Москва-Вологда",
"count": 83,
"date_start": "Mon, 22 Jan 2024 07:15:58 GMT",
"date_end": "Sun, 04 Feb 2024 14:05:25 GMT",
"created_at": "Mon, 27 Jan 2020 21:25:21 GMT"
},
{
"key": 89,
"trip": "Владивосток-Владимир",
"count": 27,
"date_start": "Wed, 08 Nov 2023 00:45:46 GMT",
"date_end": "Tue, 21 Nov 2023 07:35:30 GMT",
"created_at": "Sun, 03 Apr 2022 08:12:20 GMT"
},
{
"key": 90,
"trip": "S",
"count": 75,
"date_start": "Fri, 06 Aug 2021 21:40:09 GMT",
"date_end": "Thu, 19 Aug 2021 04:30:25 GMT",
"created_at": "Mon, 27 Dec 2021 10:19:20 GMT"
},
{
"key": 91,
"trip": "U",
"count": 30,
"date_start": "Sun, 08 Mar 2020 17:12:41 GMT",
"date_end": "Sat, 21 Mar 2020 00:00:30 GMT",
"created_at": "Mon, 22 Aug 2022 15:00:22 GMT"
},
{
"key": 92,
"trip": "Москва-Ижевск",
"count": 46,
"date_start": "Sat, 23 May 2020 10:41:01 GMT",
"date_end": "Fri, 05 Jun 2020 17:30:25 GMT",
"created_at": "Wed, 06 Jul 2022 06:39:05 GMT"
},
{
"key": 93,
"trip": "U",
"count": 16,
"date_start": "Fri, 26 May 2023 09:51:29 GMT",
"date_end": "Thu, 08 Jun 2023 16:40:15 GMT",
"created_at": "Sat, 26 Feb 2022 08:38:00 GMT"
},
{
"key": 94,
"trip": "Q",
"count": 4,
"date_start": "Wed, 08 Jul 2020 11:02:39 GMT",
"date_end": "Tue, 21 Jul 2020 17:50:25 GMT",
"created_at": "Fri, 24 Dec 2021 23:43:01 GMT"
},
{
"key": 95,
"trip": "Москва-Вологда",
"count": 70,
"date_start": "Mon, 10 Oct 2022 00:06:40 GMT",
"date_end": "Sun, 23 Oct 2022 06:55:30 GMT",
"created_at": "Sun, 28 Jul 2024 09:47:35 GMT"
},
{
"key": 96,
"trip": "N",
"count": 80,
"date_start": "Thu, 03 Oct 2024 02:27:30 GMT",
"date_end": "Wed, 16 Oct 2024 09:15:25 GMT",
"created_at": "Sun, 12 Feb 2023 12:07:51 GMT"
},
{
"key": 97,
"trip": "Тюмень-Вологда",
"count": 40,
"date_start": "Sat, 23 Mar 2024 21:42:40 GMT",
"date_end": "Fri, 05 Apr 2024 04:30:30 GMT",
"created_at": "Fri, 17 Mar 2023 15:47:32 GMT"
},
{
"key": 98,
"trip": "Москва-Пермь",
"count": 38,
"date_start": "Thu, 14 Jul 2022 14:03:39 GMT",
"date_end": "Wed, 27 Jul 2022 20:50:25 GMT",
"created_at": "Sat, 30 Nov 2024 07:09:52 GMT"
},
{
"key": 99,
"trip": "Тюмень-Казань",
"count": 74,
"date_start": "Thu, 19 Mar 2020 04:40:50 GMT",
"date_end": "Wed, 01 Apr 2020 11:30:30 GMT",
"created_at": "Thu, 20 Aug 2020 13:58:54 GMT"
}
]
}

View File

@ -1,5 +1,6 @@
const router = require('express').Router();
router.use('/customer', require('./dashboard-customer'))
router.use('/performer', require('./dashboard-performer'))
router.use('/auth', require('./auth'))
router.use('/landing', require('./landing'))