fb8c1488143d11dae906f2bbc834d3463ec92708
[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 _0x89c4=['post','tracked','mail','create','/:id','put','/:id/reject','reject','delete','destroy','multer','util','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailMessage.controller','get','isAuthenticated','/describe','describe','/:id/download','download'];(function(_0x294239,_0x3f5997){var _0x38f97d=function(_0x5ac50c){while(--_0x5ac50c){_0x294239['push'](_0x294239['shift']());}};_0x38f97d(++_0x3f5997);}(_0x89c4,0x82));var _0x489c=function(_0x5a225b,_0x1de1a1){_0x5a225b=_0x5a225b-0x0;var _0x1d5aab=_0x89c4[_0x5a225b];return _0x1d5aab;};'use strict';var multer=require(_0x489c('0x0'));var util=require(_0x489c('0x1'));var path=require('path');var timeout=require(_0x489c('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x489c('0x3'));var auth=require(_0x489c('0x4'));var interaction=require(_0x489c('0x5'));var config=require(_0x489c('0x6'));var controller=require(_0x489c('0x7'));router[_0x489c('0x8')]('/',auth[_0x489c('0x9')](),controller['index']);router[_0x489c('0x8')](_0x489c('0xa'),auth[_0x489c('0x9')](),controller[_0x489c('0xb')]);router['get']('/:id',auth[_0x489c('0x9')](),controller['show']);router[_0x489c('0x8')](_0x489c('0xc'),auth[_0x489c('0x9')](),controller[_0x489c('0xd')]);router[_0x489c('0xe')]('/',auth[_0x489c('0x9')](),interaction[_0x489c('0xf')](_0x489c('0x10'),'mailmessage:create'),controller[_0x489c('0x11')]);router['put'](_0x489c('0x12'),auth['isAuthenticated'](),controller['update']);router[_0x489c('0x13')]('/:id/accept',auth[_0x489c('0x9')](),controller['accept']);router[_0x489c('0x13')](_0x489c('0x14'),auth['isAuthenticated'](),controller[_0x489c('0x15')]);router[_0x489c('0x16')]('/:id',auth['isAuthenticated'](),controller[_0x489c('0x17')]);module['exports']=router;