a7da40384ca3487066be4a09577eee178a1d6aba
[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 _0xe0d7=['../../components/interaction/service','../../config/environment','./mailMessage.controller','index','get','/describe','isAuthenticated','describe','/:id','show','download','post','mailmessage:create','create','put','/:id/accept','accept','/:id/reject','reject','delete','exports','util','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x39cc8f,_0xb60cd8){var _0x15e616=function(_0x513d9e){while(--_0x513d9e){_0x39cc8f['push'](_0x39cc8f['shift']());}};_0x15e616(++_0xb60cd8);}(_0xe0d7,0x1e0));var _0x7e0d=function(_0x4aa052,_0x4bfd0c){_0x4aa052=_0x4aa052-0x0;var _0x35a515=_0xe0d7[_0x4aa052];return _0x35a515;};'use strict';var multer=require('multer');var util=require(_0x7e0d('0x0'));var path=require('path');var timeout=require(_0x7e0d('0x1'));var express=require(_0x7e0d('0x2'));var router=express[_0x7e0d('0x3')]();var fs_extra=require(_0x7e0d('0x4'));var auth=require(_0x7e0d('0x5'));var interaction=require(_0x7e0d('0x6'));var config=require(_0x7e0d('0x7'));var controller=require(_0x7e0d('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x7e0d('0x9')]);router[_0x7e0d('0xa')](_0x7e0d('0xb'),auth[_0x7e0d('0xc')](),controller[_0x7e0d('0xd')]);router[_0x7e0d('0xa')](_0x7e0d('0xe'),auth[_0x7e0d('0xc')](),controller[_0x7e0d('0xf')]);router[_0x7e0d('0xa')]('/:id/download',auth[_0x7e0d('0xc')](),controller[_0x7e0d('0x10')]);router[_0x7e0d('0x11')]('/',auth['isAuthenticated'](),interaction['tracked']('mail',_0x7e0d('0x12')),controller[_0x7e0d('0x13')]);router[_0x7e0d('0x14')](_0x7e0d('0xe'),auth[_0x7e0d('0xc')](),controller['update']);router['put'](_0x7e0d('0x15'),auth['isAuthenticated'](),controller[_0x7e0d('0x16')]);router['put'](_0x7e0d('0x17'),auth[_0x7e0d('0xc')](),controller[_0x7e0d('0x18')]);router[_0x7e0d('0x19')](_0x7e0d('0xe'),auth[_0x7e0d('0xc')](),controller['destroy']);module[_0x7e0d('0x1a')]=router;