0c8bf4017834dda6b280e0cae1d0296426cc4663
[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 _0x4cf5=['path','connect-timeout','express','../../components/interaction/service','../../config/environment','./whatsappTransferReport.controller','isAuthenticated','get','/describe','describe','post','create','put','/:id','delete','destroy','exports','multer','util'];(function(_0x4a9bdd,_0xa92e81){var _0x1e01af=function(_0x443514){while(--_0x443514){_0x4a9bdd['push'](_0x4a9bdd['shift']());}};_0x1e01af(++_0xa92e81);}(_0x4cf5,0x12e));var _0x54cf=function(_0x5e0b29,_0x3ae424){_0x5e0b29=_0x5e0b29-0x0;var _0x4f6332=_0x4cf5[_0x5e0b29];return _0x4f6332;};'use strict';var multer=require(_0x54cf('0x0'));var util=require(_0x54cf('0x1'));var path=require(_0x54cf('0x2'));var timeout=require(_0x54cf('0x3'));var express=require(_0x54cf('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x54cf('0x5'));var config=require(_0x54cf('0x6'));var controller=require(_0x54cf('0x7'));router['get']('/',auth[_0x54cf('0x8')](),controller['index']);router[_0x54cf('0x9')](_0x54cf('0xa'),auth[_0x54cf('0x8')](),controller[_0x54cf('0xb')]);router[_0x54cf('0x9')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x54cf('0xc')]('/',auth['isAuthenticated'](),controller[_0x54cf('0xd')]);router[_0x54cf('0xe')](_0x54cf('0xf'),auth[_0x54cf('0x8')](),controller['update']);router[_0x54cf('0x10')](_0x54cf('0xf'),auth[_0x54cf('0x8')](),controller[_0x54cf('0x11')]);module[_0x54cf('0x12')]=router;