6533da283532444c4544afc13b51ffafd4d7f805
[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 _0xe356=['../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','describe','/:id','show','/:id/download','post','mailmessage:create','create','put','update','accept','reject','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service'];(function(_0x5f2faf,_0x2d3480){var _0xa2551=function(_0x3d3c6d){while(--_0x3d3c6d){_0x5f2faf['push'](_0x5f2faf['shift']());}};_0xa2551(++_0x2d3480);}(_0xe356,0x1ee));var _0x6e35=function(_0x4b109e,_0x40be63){_0x4b109e=_0x4b109e-0x0;var _0x83c855=_0xe356[_0x4b109e];return _0x83c855;};'use strict';var multer=require(_0x6e35('0x0'));var util=require(_0x6e35('0x1'));var path=require(_0x6e35('0x2'));var timeout=require(_0x6e35('0x3'));var express=require('express');var router=express[_0x6e35('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x6e35('0x5'));var interaction=require(_0x6e35('0x6'));var config=require(_0x6e35('0x7'));var controller=require('./mailMessage.controller');router[_0x6e35('0x8')]('/',auth[_0x6e35('0x9')](),controller['index']);router[_0x6e35('0x8')](_0x6e35('0xa'),auth[_0x6e35('0x9')](),controller[_0x6e35('0xb')]);router['get'](_0x6e35('0xc'),auth['isAuthenticated'](),controller[_0x6e35('0xd')]);router['get'](_0x6e35('0xe'),auth['isAuthenticated'](),controller['download']);router[_0x6e35('0xf')]('/',auth[_0x6e35('0x9')](),interaction['tracked']('mail',_0x6e35('0x10')),controller[_0x6e35('0x11')]);router[_0x6e35('0x12')]('/:id',auth[_0x6e35('0x9')](),controller[_0x6e35('0x13')]);router[_0x6e35('0x12')]('/:id/accept',auth[_0x6e35('0x9')](),controller[_0x6e35('0x14')]);router[_0x6e35('0x12')]('/:id/reject',auth[_0x6e35('0x9')](),controller[_0x6e35('0x15')]);router[_0x6e35('0x16')]('/:id',auth[_0x6e35('0x9')](),controller[_0x6e35('0x17')]);module[_0x6e35('0x18')]=router;