5360f5594e8f576662f5cabbbbefbb557fd6d368
[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 _0x97a2=['../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','/:id','show','post','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x66195f,_0x4a1a3d){var _0x89b1b7=function(_0x3825a3){while(--_0x3825a3){_0x66195f['push'](_0x66195f['shift']());}};_0x89b1b7(++_0x4a1a3d);}(_0x97a2,0x1b1));var _0x297a=function(_0xca0c64,_0x15ddee){_0xca0c64=_0xca0c64-0x0;var _0x26dd04=_0x97a2[_0xca0c64];return _0x26dd04;};'use strict';var multer=require(_0x297a('0x0'));var util=require('util');var path=require(_0x297a('0x1'));var timeout=require(_0x297a('0x2'));var express=require(_0x297a('0x3'));var router=express[_0x297a('0x4')]();var fs_extra=require(_0x297a('0x5'));var auth=require(_0x297a('0x6'));var interaction=require(_0x297a('0x7'));var config=require(_0x297a('0x8'));var controller=require('./whatsappQueueReport.controller');router[_0x297a('0x9')]('/',auth[_0x297a('0xa')](),controller[_0x297a('0xb')]);router[_0x297a('0x9')](_0x297a('0xc'),auth[_0x297a('0xa')](),controller['describe']);router[_0x297a('0x9')](_0x297a('0xd'),auth[_0x297a('0xa')](),controller[_0x297a('0xe')]);router[_0x297a('0xf')]('/',auth[_0x297a('0xa')](),controller['create']);router['put']('/:id',auth[_0x297a('0xa')](),controller[_0x297a('0x10')]);router[_0x297a('0x11')](_0x297a('0xd'),auth['isAuthenticated'](),controller[_0x297a('0x12')]);module[_0x297a('0x13')]=router;