ba800eba44280c441c8067814e4ec186013120ca
[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 _0x8a87=['./whatsappQueueReport.controller','index','get','/describe','isAuthenticated','describe','/:id','show','create','put','destroy','multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x3549e1,_0x55807b){var _0x57a488=function(_0x4a2a20){while(--_0x4a2a20){_0x3549e1['push'](_0x3549e1['shift']());}};_0x57a488(++_0x55807b);}(_0x8a87,0x6b));var _0x78a8=function(_0x912d27,_0x28e0e3){_0x912d27=_0x912d27-0x0;var _0x31b918=_0x8a87[_0x912d27];return _0x31b918;};'use strict';var multer=require(_0x78a8('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x78a8('0x1'));var express=require('express');var router=express[_0x78a8('0x2')]();var auth=require(_0x78a8('0x3'));var interaction=require(_0x78a8('0x4'));var config=require('../../config/environment');var controller=require(_0x78a8('0x5'));router['get']('/',auth['isAuthenticated'](),controller[_0x78a8('0x6')]);router[_0x78a8('0x7')](_0x78a8('0x8'),auth[_0x78a8('0x9')](),controller[_0x78a8('0xa')]);router['get'](_0x78a8('0xb'),auth['isAuthenticated'](),controller[_0x78a8('0xc')]);router['post']('/',auth[_0x78a8('0x9')](),controller[_0x78a8('0xd')]);router[_0x78a8('0xe')](_0x78a8('0xb'),auth[_0x78a8('0x9')](),controller['update']);router['delete'](_0x78a8('0xb'),auth[_0x78a8('0x9')](),controller[_0x78a8('0xf')]);module['exports']=router;