5733a38943f8b5e9c3ddf961d8cf8866b6222c96
[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 _0x3d9c=['update','delete','exports','multer','util','path','connect-timeout','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','post','put'];(function(_0x3d42d8,_0x4cffaa){var _0x27fc41=function(_0x3a363b){while(--_0x3a363b){_0x3d42d8['push'](_0x3d42d8['shift']());}};_0x27fc41(++_0x4cffaa);}(_0x3d9c,0x93));var _0xc3d9=function(_0x115e10,_0x22152d){_0x115e10=_0x115e10-0x0;var _0x1160cc=_0x3d9c[_0x115e10];return _0x1160cc;};'use strict';var multer=require(_0xc3d9('0x0'));var util=require(_0xc3d9('0x1'));var path=require(_0xc3d9('0x2'));var timeout=require(_0xc3d9('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xc3d9('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xc3d9('0x5'));var controller=require('./whatsappTransferReport.controller');router[_0xc3d9('0x6')]('/',auth[_0xc3d9('0x7')](),controller[_0xc3d9('0x8')]);router['get'](_0xc3d9('0x9'),auth[_0xc3d9('0x7')](),controller[_0xc3d9('0xa')]);router[_0xc3d9('0x6')](_0xc3d9('0xb'),auth['isAuthenticated'](),controller[_0xc3d9('0xc')]);router[_0xc3d9('0xd')]('/',auth[_0xc3d9('0x7')](),controller['create']);router[_0xc3d9('0xe')]('/:id',auth['isAuthenticated'](),controller[_0xc3d9('0xf')]);router[_0xc3d9('0x10')](_0xc3d9('0xb'),auth[_0xc3d9('0x7')](),controller['destroy']);module[_0xc3d9('0x11')]=router;