f89aa8a981cbaac74c268a76e9ae695937429a48
[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 _0x12ab=['post','create','put','/:id','update','delete','destroy','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','index','get','/describe','isAuthenticated','show'];(function(_0x2e5c07,_0x5c29e0){var _0x4fa341=function(_0x3782c6){while(--_0x3782c6){_0x2e5c07['push'](_0x2e5c07['shift']());}};_0x4fa341(++_0x5c29e0);}(_0x12ab,0x1ac));var _0xb12a=function(_0x45ded3,_0x2e8a3f){_0x45ded3=_0x45ded3-0x0;var _0x4fc818=_0x12ab[_0x45ded3];return _0x4fc818;};'use strict';var multer=require(_0xb12a('0x0'));var util=require(_0xb12a('0x1'));var path=require(_0xb12a('0x2'));var timeout=require('connect-timeout');var express=require(_0xb12a('0x3'));var router=express['Router']();var fs_extra=require(_0xb12a('0x4'));var auth=require(_0xb12a('0x5'));var interaction=require(_0xb12a('0x6'));var config=require(_0xb12a('0x7'));var controller=require('./whatsappTransferReport.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xb12a('0x8')]);router[_0xb12a('0x9')](_0xb12a('0xa'),auth[_0xb12a('0xb')](),controller['describe']);router['get']('/:id',auth[_0xb12a('0xb')](),controller[_0xb12a('0xc')]);router[_0xb12a('0xd')]('/',auth[_0xb12a('0xb')](),controller[_0xb12a('0xe')]);router[_0xb12a('0xf')](_0xb12a('0x10'),auth[_0xb12a('0xb')](),controller[_0xb12a('0x11')]);router[_0xb12a('0x12')](_0xb12a('0x10'),auth[_0xb12a('0xb')](),controller[_0xb12a('0x13')]);module[_0xb12a('0x14')]=router;