Built motion from commit a679711e.|2.6.15
[motion2.git] / server / api / mailTransferReport / 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 _0xf493=['delete','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','describe','isAuthenticated','show','post','create','/:id'];(function(_0x17622f,_0x31f944){var _0x375aa2=function(_0x39b2e3){while(--_0x39b2e3){_0x17622f['push'](_0x17622f['shift']());}};_0x375aa2(++_0x31f944);}(_0xf493,0x8f));var _0x3f49=function(_0x4452e3,_0x22a3b3){_0x4452e3=_0x4452e3-0x0;var _0xb56a8=_0xf493[_0x4452e3];return _0xb56a8;};'use strict';var multer=require(_0x3f49('0x0'));var util=require(_0x3f49('0x1'));var path=require(_0x3f49('0x2'));var timeout=require(_0x3f49('0x3'));var express=require('express');var router=express[_0x3f49('0x4')]();var fs_extra=require(_0x3f49('0x5'));var auth=require(_0x3f49('0x6'));var interaction=require(_0x3f49('0x7'));var config=require(_0x3f49('0x8'));var controller=require('./mailTransferReport.controller');router[_0x3f49('0x9')]('/',auth['isAuthenticated'](),controller[_0x3f49('0xa')]);router[_0x3f49('0x9')]('/describe',auth['isAuthenticated'](),controller[_0x3f49('0xb')]);router[_0x3f49('0x9')]('/:id',auth[_0x3f49('0xc')](),controller[_0x3f49('0xd')]);router[_0x3f49('0xe')]('/',auth[_0x3f49('0xc')](),controller[_0x3f49('0xf')]);router['put'](_0x3f49('0x10'),auth['isAuthenticated'](),controller['update']);router[_0x3f49('0x11')](_0x3f49('0x10'),auth['isAuthenticated'](),controller[_0x3f49('0x12')]);module[_0x3f49('0x13')]=router;