3749a3a6a82c8a331588e45c0a34465c01abd03e
[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 _0x24dd=['./mailMessage.controller','isAuthenticated','get','/describe','describe','/:id','show','/:id/download','download','post','tracked','mail','mailmessage:create','create','put','update','accept','/:id/reject','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment'];(function(_0x1cd682,_0x161e56){var _0x1b29ec=function(_0xc91e2e){while(--_0xc91e2e){_0x1cd682['push'](_0x1cd682['shift']());}};_0x1b29ec(++_0x161e56);}(_0x24dd,0x84));var _0xd24d=function(_0x163040,_0x38a58c){_0x163040=_0x163040-0x0;var _0x364667=_0x24dd[_0x163040];return _0x364667;};'use strict';var multer=require(_0xd24d('0x0'));var util=require(_0xd24d('0x1'));var path=require('path');var timeout=require(_0xd24d('0x2'));var express=require(_0xd24d('0x3'));var router=express[_0xd24d('0x4')]();var fs_extra=require(_0xd24d('0x5'));var auth=require(_0xd24d('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xd24d('0x7'));var controller=require(_0xd24d('0x8'));router['get']('/',auth[_0xd24d('0x9')](),controller['index']);router[_0xd24d('0xa')](_0xd24d('0xb'),auth['isAuthenticated'](),controller[_0xd24d('0xc')]);router[_0xd24d('0xa')](_0xd24d('0xd'),auth[_0xd24d('0x9')](),controller[_0xd24d('0xe')]);router[_0xd24d('0xa')](_0xd24d('0xf'),auth[_0xd24d('0x9')](),controller[_0xd24d('0x10')]);router[_0xd24d('0x11')]('/',auth['isAuthenticated'](),interaction[_0xd24d('0x12')](_0xd24d('0x13'),_0xd24d('0x14')),controller[_0xd24d('0x15')]);router[_0xd24d('0x16')](_0xd24d('0xd'),auth[_0xd24d('0x9')](),controller[_0xd24d('0x17')]);router[_0xd24d('0x16')]('/:id/accept',auth['isAuthenticated'](),controller[_0xd24d('0x18')]);router[_0xd24d('0x16')](_0xd24d('0x19'),auth[_0xd24d('0x9')](),controller['reject']);router['delete'](_0xd24d('0xd'),auth[_0xd24d('0x9')](),controller[_0xd24d('0x1a')]);module[_0xd24d('0x1b')]=router;