86e5fc1282961f96522bcf97eb016602934df259
[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 _0x8d98=['/:id/reject','reject','delete','exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','/describe','/:id','show','/:id/download','post','tracked','mail','mailmessage:create','put','update','/:id/accept','accept'];(function(_0x48f3d3,_0xc17d38){var _0x2fa580=function(_0x3fba89){while(--_0x3fba89){_0x48f3d3['push'](_0x48f3d3['shift']());}};_0x2fa580(++_0xc17d38);}(_0x8d98,0x1c6));var _0x88d9=function(_0x651909,_0x15c6b4){_0x651909=_0x651909-0x0;var _0x572299=_0x8d98[_0x651909];return _0x572299;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x88d9('0x0'));var timeout=require(_0x88d9('0x1'));var express=require(_0x88d9('0x2'));var router=express[_0x88d9('0x3')]();var fs_extra=require(_0x88d9('0x4'));var auth=require(_0x88d9('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x88d9('0x6'));var controller=require('./mailMessage.controller');router[_0x88d9('0x7')]('/',auth[_0x88d9('0x8')](),controller['index']);router[_0x88d9('0x7')](_0x88d9('0x9'),auth[_0x88d9('0x8')](),controller['describe']);router[_0x88d9('0x7')](_0x88d9('0xa'),auth['isAuthenticated'](),controller[_0x88d9('0xb')]);router[_0x88d9('0x7')](_0x88d9('0xc'),auth[_0x88d9('0x8')](),controller['download']);router[_0x88d9('0xd')]('/',auth[_0x88d9('0x8')](),interaction[_0x88d9('0xe')](_0x88d9('0xf'),_0x88d9('0x10')),controller['create']);router[_0x88d9('0x11')](_0x88d9('0xa'),auth[_0x88d9('0x8')](),controller[_0x88d9('0x12')]);router[_0x88d9('0x11')](_0x88d9('0x13'),auth['isAuthenticated'](),controller[_0x88d9('0x14')]);router[_0x88d9('0x11')](_0x88d9('0x15'),auth[_0x88d9('0x8')](),controller[_0x88d9('0x16')]);router[_0x88d9('0x17')](_0x88d9('0xa'),auth[_0x88d9('0x8')](),controller['destroy']);module[_0x88d9('0x18')]=router;