51952f9cf674758eb4109563017219403a2f3d9f
[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 _0x0697=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','describe','show','post','/:id','update','delete','exports','multer','util','path','express','Router','fs-extra'];(function(_0x25f664,_0x182d05){var _0x45f9c9=function(_0x373ccb){while(--_0x373ccb){_0x25f664['push'](_0x25f664['shift']());}};_0x45f9c9(++_0x182d05);}(_0x0697,0x1e0));var _0x7069=function(_0x485b5a,_0x2b289b){_0x485b5a=_0x485b5a-0x0;var _0xd2b34d=_0x0697[_0x485b5a];return _0xd2b34d;};'use strict';var multer=require(_0x7069('0x0'));var util=require(_0x7069('0x1'));var path=require(_0x7069('0x2'));var timeout=require('connect-timeout');var express=require(_0x7069('0x3'));var router=express[_0x7069('0x4')]();var fs_extra=require(_0x7069('0x5'));var auth=require(_0x7069('0x6'));var interaction=require(_0x7069('0x7'));var config=require(_0x7069('0x8'));var controller=require('./whatsappTransferReport.controller');router[_0x7069('0x9')]('/',auth[_0x7069('0xa')](),controller['index']);router[_0x7069('0x9')]('/describe',auth['isAuthenticated'](),controller[_0x7069('0xb')]);router['get']('/:id',auth[_0x7069('0xa')](),controller[_0x7069('0xc')]);router[_0x7069('0xd')]('/',auth[_0x7069('0xa')](),controller['create']);router['put'](_0x7069('0xe'),auth[_0x7069('0xa')](),controller[_0x7069('0xf')]);router[_0x7069('0x10')](_0x7069('0xe'),auth[_0x7069('0xa')](),controller['destroy']);module[_0x7069('0x11')]=router;