a89f91143e018bad6e519f28aadf1ab69618e1cb
[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 _0x504a=['/:id','destroy','multer','util','path','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','./whatsappQueueReport.controller','get','isAuthenticated','index','/describe','describe','put','update','delete'];(function(_0x4d8a72,_0x2b1ff6){var _0x4acbe1=function(_0x2207db){while(--_0x2207db){_0x4d8a72['push'](_0x4d8a72['shift']());}};_0x4acbe1(++_0x2b1ff6);}(_0x504a,0x134));var _0xa504=function(_0xe5333e,_0x3e5d48){_0xe5333e=_0xe5333e-0x0;var _0x6b7a5f=_0x504a[_0xe5333e];return _0x6b7a5f;};'use strict';var multer=require(_0xa504('0x0'));var util=require(_0xa504('0x1'));var path=require(_0xa504('0x2'));var timeout=require(_0xa504('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xa504('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xa504('0x5'));var config=require(_0xa504('0x6'));var controller=require(_0xa504('0x7'));router[_0xa504('0x8')]('/',auth[_0xa504('0x9')](),controller[_0xa504('0xa')]);router[_0xa504('0x8')](_0xa504('0xb'),auth[_0xa504('0x9')](),controller[_0xa504('0xc')]);router[_0xa504('0x8')]('/:id',auth[_0xa504('0x9')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xa504('0xd')]('/:id',auth[_0xa504('0x9')](),controller[_0xa504('0xe')]);router[_0xa504('0xf')](_0xa504('0x10'),auth['isAuthenticated'](),controller[_0xa504('0x11')]);module['exports']=router;