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