Built motion from commit 37e1ed56.|2.6.29
[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 _0xe962=['Router','fs-extra','../../config/environment','./whatsappTransferReport.controller','isAuthenticated','get','/describe','describe','post','create','/:id','delete','destroy','exports','util','path','connect-timeout','express'];(function(_0x22de09,_0x3db597){var _0x4a13dc=function(_0x2b02eb){while(--_0x2b02eb){_0x22de09['push'](_0x22de09['shift']());}};_0x4a13dc(++_0x3db597);}(_0xe962,0x19a));var _0x2e96=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xe962[_0x14add3];return _0x4a174f;};'use strict';var multer=require('multer');var util=require(_0x2e96('0x0'));var path=require(_0x2e96('0x1'));var timeout=require(_0x2e96('0x2'));var express=require(_0x2e96('0x3'));var router=express[_0x2e96('0x4')]();var fs_extra=require(_0x2e96('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x2e96('0x6'));var controller=require(_0x2e96('0x7'));router['get']('/',auth[_0x2e96('0x8')](),controller['index']);router[_0x2e96('0x9')](_0x2e96('0xa'),auth[_0x2e96('0x8')](),controller[_0x2e96('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0x2e96('0xc')]('/',auth['isAuthenticated'](),controller[_0x2e96('0xd')]);router['put'](_0x2e96('0xe'),auth[_0x2e96('0x8')](),controller['update']);router[_0x2e96('0xf')](_0x2e96('0xe'),auth[_0x2e96('0x8')](),controller[_0x2e96('0x10')]);module[_0x2e96('0x11')]=router;