470edca4a6fea37db68a4919edb3845d30a19e22
[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 _0x9e3c=['destroy','exports','multer','util','path','Router','fs-extra','../../components/interaction/service','./whatsappTransferReport.controller','isAuthenticated','index','get','/describe','describe','/:id','create','update'];(function(_0x905e,_0x276f75){var _0x107e81=function(_0x380537){while(--_0x380537){_0x905e['push'](_0x905e['shift']());}};_0x107e81(++_0x276f75);}(_0x9e3c,0x101));var _0xc9e3=function(_0x1eeb93,_0x34a11f){_0x1eeb93=_0x1eeb93-0x0;var _0x51610c=_0x9e3c[_0x1eeb93];return _0x51610c;};'use strict';var multer=require(_0xc9e3('0x0'));var util=require(_0xc9e3('0x1'));var path=require(_0xc9e3('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xc9e3('0x3')]();var fs_extra=require(_0xc9e3('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xc9e3('0x5'));var config=require('../../config/environment');var controller=require(_0xc9e3('0x6'));router['get']('/',auth[_0xc9e3('0x7')](),controller[_0xc9e3('0x8')]);router[_0xc9e3('0x9')](_0xc9e3('0xa'),auth[_0xc9e3('0x7')](),controller[_0xc9e3('0xb')]);router['get'](_0xc9e3('0xc'),auth[_0xc9e3('0x7')](),controller['show']);router['post']('/',auth[_0xc9e3('0x7')](),controller[_0xc9e3('0xd')]);router['put'](_0xc9e3('0xc'),auth[_0xc9e3('0x7')](),controller[_0xc9e3('0xe')]);router['delete'](_0xc9e3('0xc'),auth[_0xc9e3('0x7')](),controller[_0xc9e3('0xf')]);module[_0xc9e3('0x10')]=router;