Built motion from commit 9d0783e6.|2.6.13
[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 _0xf12a=['show','post','tracked','create','put','update','/:id/accept','accept','/:id/reject','reject','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../config/environment','get','index','/describe','isAuthenticated','describe','/:id'];(function(_0x104a5e,_0x4e20ae){var _0x2830f4=function(_0x1a810e){while(--_0x1a810e){_0x104a5e['push'](_0x104a5e['shift']());}};_0x2830f4(++_0x4e20ae);}(_0xf12a,0x8e));var _0xaf12=function(_0x5497d3,_0x193adf){_0x5497d3=_0x5497d3-0x0;var _0x42f1ef=_0xf12a[_0x5497d3];return _0x42f1ef;};'use strict';var multer=require(_0xaf12('0x0'));var util=require(_0xaf12('0x1'));var path=require(_0xaf12('0x2'));var timeout=require(_0xaf12('0x3'));var express=require(_0xaf12('0x4'));var router=express[_0xaf12('0x5')]();var fs_extra=require(_0xaf12('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xaf12('0x7'));var controller=require('./mailMessage.controller');router[_0xaf12('0x8')]('/',auth['isAuthenticated'](),controller[_0xaf12('0x9')]);router['get'](_0xaf12('0xa'),auth[_0xaf12('0xb')](),controller[_0xaf12('0xc')]);router[_0xaf12('0x8')](_0xaf12('0xd'),auth[_0xaf12('0xb')](),controller[_0xaf12('0xe')]);router[_0xaf12('0x8')]('/:id/download',auth[_0xaf12('0xb')](),controller['download']);router[_0xaf12('0xf')]('/',auth['isAuthenticated'](),interaction[_0xaf12('0x10')]('mail','mailmessage:create'),controller[_0xaf12('0x11')]);router[_0xaf12('0x12')](_0xaf12('0xd'),auth[_0xaf12('0xb')](),controller[_0xaf12('0x13')]);router[_0xaf12('0x12')](_0xaf12('0x14'),auth[_0xaf12('0xb')](),controller[_0xaf12('0x15')]);router[_0xaf12('0x12')](_0xaf12('0x16'),auth[_0xaf12('0xb')](),controller[_0xaf12('0x17')]);router[_0xaf12('0x18')](_0xaf12('0xd'),auth[_0xaf12('0xb')](),controller[_0xaf12('0x19')]);module['exports']=router;