11e0357eb44793742befef9ac9e1fa19b02fa910
[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 _0x3361=['../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','post','create','update','destroy','exports','util','path','express','fs-extra','../../components/auth/service'];(function(_0x458a47,_0x2852d9){var _0x12084d=function(_0x4a60c9){while(--_0x4a60c9){_0x458a47['push'](_0x458a47['shift']());}};_0x12084d(++_0x2852d9);}(_0x3361,0x9d));var _0x1336=function(_0xdcd5fa,_0x36b5c9){_0xdcd5fa=_0xdcd5fa-0x0;var _0x4d300f=_0x3361[_0xdcd5fa];return _0x4d300f;};'use strict';var multer=require('multer');var util=require(_0x1336('0x0'));var path=require(_0x1336('0x1'));var timeout=require('connect-timeout');var express=require(_0x1336('0x2'));var router=express['Router']();var fs_extra=require(_0x1336('0x3'));var auth=require(_0x1336('0x4'));var interaction=require(_0x1336('0x5'));var config=require(_0x1336('0x6'));var controller=require('./whatsappTransferReport.controller');router[_0x1336('0x7')]('/',auth[_0x1336('0x8')](),controller[_0x1336('0x9')]);router[_0x1336('0x7')](_0x1336('0xa'),auth[_0x1336('0x8')](),controller[_0x1336('0xb')]);router[_0x1336('0x7')](_0x1336('0xc'),auth[_0x1336('0x8')](),controller['show']);router[_0x1336('0xd')]('/',auth[_0x1336('0x8')](),controller[_0x1336('0xe')]);router['put'](_0x1336('0xc'),auth['isAuthenticated'](),controller[_0x1336('0xf')]);router['delete'](_0x1336('0xc'),auth[_0x1336('0x8')](),controller[_0x1336('0x10')]);module[_0x1336('0x11')]=router;