Built motion from commit e0fa946e.|2.6.5
[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 _0xb406=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','describe','/:id','show','/:id/download','download','tracked','mail','mailmessage:create','put','update','/:id/accept','reject','multer','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x2ab408,_0x46b6f3){var _0x524d62=function(_0x55c140){while(--_0x55c140){_0x2ab408['push'](_0x2ab408['shift']());}};_0x524d62(++_0x46b6f3);}(_0xb406,0x10c));var _0x6b40=function(_0x1974cb,_0x221e2d){_0x1974cb=_0x1974cb-0x0;var _0x171ba9=_0xb406[_0x1974cb];return _0x171ba9;};'use strict';var multer=require(_0x6b40('0x0'));var util=require(_0x6b40('0x1'));var path=require(_0x6b40('0x2'));var timeout=require(_0x6b40('0x3'));var express=require(_0x6b40('0x4'));var router=express[_0x6b40('0x5')]();var fs_extra=require(_0x6b40('0x6'));var auth=require(_0x6b40('0x7'));var interaction=require(_0x6b40('0x8'));var config=require(_0x6b40('0x9'));var controller=require('./mailMessage.controller');router[_0x6b40('0xa')]('/',auth[_0x6b40('0xb')](),controller[_0x6b40('0xc')]);router[_0x6b40('0xa')]('/describe',auth['isAuthenticated'](),controller[_0x6b40('0xd')]);router[_0x6b40('0xa')](_0x6b40('0xe'),auth['isAuthenticated'](),controller[_0x6b40('0xf')]);router[_0x6b40('0xa')](_0x6b40('0x10'),auth[_0x6b40('0xb')](),controller[_0x6b40('0x11')]);router['post']('/',auth[_0x6b40('0xb')](),interaction[_0x6b40('0x12')](_0x6b40('0x13'),_0x6b40('0x14')),controller['create']);router[_0x6b40('0x15')](_0x6b40('0xe'),auth[_0x6b40('0xb')](),controller[_0x6b40('0x16')]);router[_0x6b40('0x15')](_0x6b40('0x17'),auth[_0x6b40('0xb')](),controller['accept']);router[_0x6b40('0x15')]('/:id/reject',auth[_0x6b40('0xb')](),controller[_0x6b40('0x18')]);router['delete'](_0x6b40('0xe'),auth[_0x6b40('0xb')](),controller['destroy']);module['exports']=router;