33fe07aa9271bda4fae790100a3f2295b383ba35
[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 _0xba33=['delete','destroy','multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./whatsappTransferReport.controller','get','isAuthenticated','index','/describe','show','post','put','/:id'];(function(_0x3d0198,_0x94b95c){var _0x3488b2=function(_0x1483ba){while(--_0x1483ba){_0x3d0198['push'](_0x3d0198['shift']());}};_0x3488b2(++_0x94b95c);}(_0xba33,0x9a));var _0x3ba3=function(_0x3c6aa7,_0x5837bd){_0x3c6aa7=_0x3c6aa7-0x0;var _0x355f55=_0xba33[_0x3c6aa7];return _0x355f55;};'use strict';var multer=require(_0x3ba3('0x0'));var util=require(_0x3ba3('0x1'));var path=require(_0x3ba3('0x2'));var timeout=require(_0x3ba3('0x3'));var express=require(_0x3ba3('0x4'));var router=express['Router']();var fs_extra=require(_0x3ba3('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x3ba3('0x6'));var config=require(_0x3ba3('0x7'));var controller=require(_0x3ba3('0x8'));router[_0x3ba3('0x9')]('/',auth[_0x3ba3('0xa')](),controller[_0x3ba3('0xb')]);router[_0x3ba3('0x9')](_0x3ba3('0xc'),auth[_0x3ba3('0xa')](),controller['describe']);router['get']('/:id',auth[_0x3ba3('0xa')](),controller[_0x3ba3('0xd')]);router[_0x3ba3('0xe')]('/',auth[_0x3ba3('0xa')](),controller['create']);router[_0x3ba3('0xf')](_0x3ba3('0x10'),auth['isAuthenticated'](),controller['update']);router[_0x3ba3('0x11')](_0x3ba3('0x10'),auth[_0x3ba3('0xa')](),controller[_0x3ba3('0x12')]);module['exports']=router;