8ec23b9f6ba377cf8a304e7b3f56813cc1a54515
[motion2.git] / server / api / whatsappTransferReport / 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 _0xb986=['get','isAuthenticated','/describe','describe','create','put','/:id','delete','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service'];(function(_0x1694f5,_0x49b7c3){var _0x5b4321=function(_0x58c183){while(--_0x58c183){_0x1694f5['push'](_0x1694f5['shift']());}};_0x5b4321(++_0x49b7c3);}(_0xb986,0x89));var _0x6b98=function(_0x7f8d85,_0x3c5fe3){_0x7f8d85=_0x7f8d85-0x0;var _0x425755=_0xb986[_0x7f8d85];return _0x425755;};'use strict';var multer=require(_0x6b98('0x0'));var util=require(_0x6b98('0x1'));var path=require(_0x6b98('0x2'));var timeout=require(_0x6b98('0x3'));var express=require(_0x6b98('0x4'));var router=express[_0x6b98('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x6b98('0x6'));var config=require('../../config/environment');var controller=require('./whatsappTransferReport.controller');router[_0x6b98('0x7')]('/',auth[_0x6b98('0x8')](),controller['index']);router['get'](_0x6b98('0x9'),auth['isAuthenticated'](),controller[_0x6b98('0xa')]);router['get']('/:id',auth[_0x6b98('0x8')](),controller['show']);router['post']('/',auth[_0x6b98('0x8')](),controller[_0x6b98('0xb')]);router[_0x6b98('0xc')](_0x6b98('0xd'),auth['isAuthenticated'](),controller['update']);router[_0x6b98('0xe')]('/:id',auth[_0x6b98('0x8')](),controller['destroy']);module[_0x6b98('0xf')]=router;