4f4d2116bd7daddbf442ed04588f727cef21d4f7
[motion2.git] / server / api / mailMessage / 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 _0x7c80=['fs-extra','../../components/interaction/service','../../config/environment','./mailMessage.controller','isAuthenticated','/describe','describe','get','/:id','download','mailmessage:create','create','put','update','/:id/accept','/:id/reject','reject','delete','destroy','exports','multer','util','express','Router'];(function(_0x2c0080,_0x46b56e){var _0x3ad4a9=function(_0x30f256){while(--_0x30f256){_0x2c0080['push'](_0x2c0080['shift']());}};_0x3ad4a9(++_0x46b56e);}(_0x7c80,0xa4));var _0x07c8=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x7c80[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x07c8('0x0'));var util=require(_0x07c8('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x07c8('0x2'));var router=express[_0x07c8('0x3')]();var fs_extra=require(_0x07c8('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x07c8('0x5'));var config=require(_0x07c8('0x6'));var controller=require(_0x07c8('0x7'));router['get']('/',auth[_0x07c8('0x8')](),controller['index']);router['get'](_0x07c8('0x9'),auth[_0x07c8('0x8')](),controller[_0x07c8('0xa')]);router[_0x07c8('0xb')](_0x07c8('0xc'),auth[_0x07c8('0x8')](),controller['show']);router[_0x07c8('0xb')]('/:id/download',auth['isAuthenticated'](),controller[_0x07c8('0xd')]);router['post']('/',auth[_0x07c8('0x8')](),interaction['tracked']('mail',_0x07c8('0xe')),controller[_0x07c8('0xf')]);router[_0x07c8('0x10')](_0x07c8('0xc'),auth['isAuthenticated'](),controller[_0x07c8('0x11')]);router[_0x07c8('0x10')](_0x07c8('0x12'),auth[_0x07c8('0x8')](),controller['accept']);router['put'](_0x07c8('0x13'),auth['isAuthenticated'](),controller[_0x07c8('0x14')]);router[_0x07c8('0x15')](_0x07c8('0xc'),auth[_0x07c8('0x8')](),controller[_0x07c8('0x16')]);module[_0x07c8('0x17')]=router;