Built motion from commit 1fa89557.|2.6.10
[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 _0x50a8=['describe','/:id','download','post','tracked','mail','update','put','/:id/accept','accept','/:id/reject','exports','multer','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailMessage.controller','get','isAuthenticated','index'];(function(_0x44b3bd,_0x44c97d){var _0x1efc4a=function(_0x5d0205){while(--_0x5d0205){_0x44b3bd['push'](_0x44b3bd['shift']());}};_0x1efc4a(++_0x44c97d);}(_0x50a8,0x198));var _0x850a=function(_0x4f7588,_0x399e6b){_0x4f7588=_0x4f7588-0x0;var _0x535c70=_0x50a8[_0x4f7588];return _0x535c70;};'use strict';var multer=require(_0x850a('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x850a('0x1'));var router=express['Router']();var fs_extra=require(_0x850a('0x2'));var auth=require(_0x850a('0x3'));var interaction=require(_0x850a('0x4'));var config=require(_0x850a('0x5'));var controller=require(_0x850a('0x6'));router[_0x850a('0x7')]('/',auth[_0x850a('0x8')](),controller[_0x850a('0x9')]);router[_0x850a('0x7')]('/describe',auth['isAuthenticated'](),controller[_0x850a('0xa')]);router[_0x850a('0x7')](_0x850a('0xb'),auth[_0x850a('0x8')](),controller['show']);router[_0x850a('0x7')]('/:id/download',auth['isAuthenticated'](),controller[_0x850a('0xc')]);router[_0x850a('0xd')]('/',auth[_0x850a('0x8')](),interaction[_0x850a('0xe')](_0x850a('0xf'),'mailmessage:create'),controller['create']);router['put'](_0x850a('0xb'),auth['isAuthenticated'](),controller[_0x850a('0x10')]);router[_0x850a('0x11')](_0x850a('0x12'),auth[_0x850a('0x8')](),controller[_0x850a('0x13')]);router['put'](_0x850a('0x14'),auth['isAuthenticated'](),controller['reject']);router['delete']('/:id',auth[_0x850a('0x8')](),controller['destroy']);module[_0x850a('0x15')]=router;