bd96f73d74d346a622af4872fd36e4ec38404797
[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 _0xee52=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','create','put','update','destroy','exports','multer','util','path','connect-timeout'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xee52,0xc4));var _0x2ee5=function(_0x3c631c,_0x2d33a0){_0x3c631c=_0x3c631c-0x0;var _0x16f4c6=_0xee52[_0x3c631c];return _0x16f4c6;};'use strict';var multer=require(_0x2ee5('0x0'));var util=require(_0x2ee5('0x1'));var path=require(_0x2ee5('0x2'));var timeout=require(_0x2ee5('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x2ee5('0x4'));var auth=require(_0x2ee5('0x5'));var interaction=require(_0x2ee5('0x6'));var config=require(_0x2ee5('0x7'));var controller=require('./whatsappTransferReport.controller');router[_0x2ee5('0x8')]('/',auth[_0x2ee5('0x9')](),controller[_0x2ee5('0xa')]);router[_0x2ee5('0x8')](_0x2ee5('0xb'),auth[_0x2ee5('0x9')](),controller[_0x2ee5('0xc')]);router['get'](_0x2ee5('0xd'),auth[_0x2ee5('0x9')](),controller[_0x2ee5('0xe')]);router['post']('/',auth[_0x2ee5('0x9')](),controller[_0x2ee5('0xf')]);router[_0x2ee5('0x10')]('/:id',auth[_0x2ee5('0x9')](),controller[_0x2ee5('0x11')]);router['delete'](_0x2ee5('0xd'),auth[_0x2ee5('0x9')](),controller[_0x2ee5('0x12')]);module[_0x2ee5('0x13')]=router;