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