52454446637c054a6d287739b99f42491e56f80a
[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 _0x570f=['index','/describe','describe','/:id','show','/:id/download','isAuthenticated','download','tracked','mail','create','put','update','/:id/accept','/:id/reject','reject','delete','destroy','exports','multer','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailMessage.controller','get'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0x570f,0x152));var _0xf570=function(_0x5053ff,_0x3fb835){_0x5053ff=_0x5053ff-0x0;var _0x2d4f6c=_0x570f[_0x5053ff];return _0x2d4f6c;};'use strict';var multer=require(_0xf570('0x0'));var util=require(_0xf570('0x1'));var path=require(_0xf570('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xf570('0x3')]();var fs_extra=require(_0xf570('0x4'));var auth=require(_0xf570('0x5'));var interaction=require(_0xf570('0x6'));var config=require(_0xf570('0x7'));var controller=require(_0xf570('0x8'));router[_0xf570('0x9')]('/',auth['isAuthenticated'](),controller[_0xf570('0xa')]);router['get'](_0xf570('0xb'),auth['isAuthenticated'](),controller[_0xf570('0xc')]);router['get'](_0xf570('0xd'),auth['isAuthenticated'](),controller[_0xf570('0xe')]);router[_0xf570('0x9')](_0xf570('0xf'),auth[_0xf570('0x10')](),controller[_0xf570('0x11')]);router['post']('/',auth[_0xf570('0x10')](),interaction[_0xf570('0x12')](_0xf570('0x13'),'mailmessage:create'),controller[_0xf570('0x14')]);router[_0xf570('0x15')](_0xf570('0xd'),auth['isAuthenticated'](),controller[_0xf570('0x16')]);router[_0xf570('0x15')](_0xf570('0x17'),auth[_0xf570('0x10')](),controller['accept']);router[_0xf570('0x15')](_0xf570('0x18'),auth[_0xf570('0x10')](),controller[_0xf570('0x19')]);router[_0xf570('0x1a')](_0xf570('0xd'),auth[_0xf570('0x10')](),controller[_0xf570('0x1b')]);module[_0xf570('0x1c')]=router;