d19459ebe18455f8a1b781995e9f2cd521dc5bec
[motion2.git] / server / api / whatsappQueueReport / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xfe93=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','describe','create','put','/:id','update','destroy','exports','multer','util','connect-timeout'];(function(_0x248a56,_0x5bfa53){var _0x46075d=function(_0x531a9e){while(--_0x531a9e){_0x248a56['push'](_0x248a56['shift']());}};_0x46075d(++_0x5bfa53);}(_0xfe93,0xf4));var _0x3fe9=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0xfe93[_0x17d9e3];return _0x14192d;};'use strict';var multer=require(_0x3fe9('0x0'));var util=require(_0x3fe9('0x1'));var path=require('path');var timeout=require(_0x3fe9('0x2'));var express=require(_0x3fe9('0x3'));var router=express[_0x3fe9('0x4')]();var auth=require(_0x3fe9('0x5'));var interaction=require(_0x3fe9('0x6'));var config=require(_0x3fe9('0x7'));var controller=require('./whatsappQueueReport.controller');router['get']('/',auth[_0x3fe9('0x8')](),controller[_0x3fe9('0x9')]);router[_0x3fe9('0xa')](_0x3fe9('0xb'),auth['isAuthenticated'](),controller[_0x3fe9('0xc')]);router[_0x3fe9('0xa')]('/:id',auth[_0x3fe9('0x8')](),controller['show']);router['post']('/',auth[_0x3fe9('0x8')](),controller[_0x3fe9('0xd')]);router[_0x3fe9('0xe')](_0x3fe9('0xf'),auth['isAuthenticated'](),controller[_0x3fe9('0x10')]);router['delete'](_0x3fe9('0xf'),auth[_0x3fe9('0x8')](),controller[_0x3fe9('0x11')]);module[_0x3fe9('0x12')]=router;