Built motion from commit d5e4af8c.|2.6.23
[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 _0x1a83=['multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/download','post','mail','mailmessage:create','create','put','update','/:id/accept','accept','/:id/reject','reject','delete','exports'];(function(_0x5de505,_0xee5804){var _0x1df98e=function(_0x80f4e5){while(--_0x80f4e5){_0x5de505['push'](_0x5de505['shift']());}};_0x1df98e(++_0xee5804);}(_0x1a83,0x1c0));var _0x31a8=function(_0x4287df,_0x347e1b){_0x4287df=_0x4287df-0x0;var _0x4dd842=_0x1a83[_0x4287df];return _0x4dd842;};'use strict';var multer=require(_0x31a8('0x0'));var util=require(_0x31a8('0x1'));var path=require(_0x31a8('0x2'));var timeout=require('connect-timeout');var express=require(_0x31a8('0x3'));var router=express['Router']();var fs_extra=require(_0x31a8('0x4'));var auth=require(_0x31a8('0x5'));var interaction=require(_0x31a8('0x6'));var config=require(_0x31a8('0x7'));var controller=require('./mailMessage.controller');router['get']('/',auth[_0x31a8('0x8')](),controller[_0x31a8('0x9')]);router[_0x31a8('0xa')](_0x31a8('0xb'),auth[_0x31a8('0x8')](),controller[_0x31a8('0xc')]);router[_0x31a8('0xa')](_0x31a8('0xd'),auth[_0x31a8('0x8')](),controller[_0x31a8('0xe')]);router['get'](_0x31a8('0xf'),auth['isAuthenticated'](),controller['download']);router[_0x31a8('0x10')]('/',auth[_0x31a8('0x8')](),interaction['tracked'](_0x31a8('0x11'),_0x31a8('0x12')),controller[_0x31a8('0x13')]);router[_0x31a8('0x14')]('/:id',auth['isAuthenticated'](),controller[_0x31a8('0x15')]);router['put'](_0x31a8('0x16'),auth['isAuthenticated'](),controller[_0x31a8('0x17')]);router[_0x31a8('0x14')](_0x31a8('0x18'),auth['isAuthenticated'](),controller[_0x31a8('0x19')]);router[_0x31a8('0x1a')]('/:id',auth[_0x31a8('0x8')](),controller['destroy']);module[_0x31a8('0x1b')]=router;