Built motion from commit da617fac.|2.6.6
[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 _0x84fa=['express','fs-extra','../../config/environment','get','isAuthenticated','describe','/:id','show','post','create','put','update','delete','destroy','exports','util','path'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x84fa,0x75));var _0xa84f=function(_0xb0f7c3,_0x4eae95){_0xb0f7c3=_0xb0f7c3-0x0;var _0x28ea68=_0x84fa[_0xb0f7c3];return _0x28ea68;};'use strict';var multer=require('multer');var util=require(_0xa84f('0x0'));var path=require(_0xa84f('0x1'));var timeout=require('connect-timeout');var express=require(_0xa84f('0x2'));var router=express['Router']();var fs_extra=require(_0xa84f('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xa84f('0x4'));var controller=require('./whatsappTransferReport.controller');router[_0xa84f('0x5')]('/',auth[_0xa84f('0x6')](),controller['index']);router['get']('/describe',auth[_0xa84f('0x6')](),controller[_0xa84f('0x7')]);router[_0xa84f('0x5')](_0xa84f('0x8'),auth[_0xa84f('0x6')](),controller[_0xa84f('0x9')]);router[_0xa84f('0xa')]('/',auth[_0xa84f('0x6')](),controller[_0xa84f('0xb')]);router[_0xa84f('0xc')]('/:id',auth[_0xa84f('0x6')](),controller[_0xa84f('0xd')]);router[_0xa84f('0xe')](_0xa84f('0x8'),auth['isAuthenticated'](),controller[_0xa84f('0xf')]);module[_0xa84f('0x10')]=router;