Built motion from commit 14588770.|2.5.38
[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 _0x6bc9=['./mailMessage.controller','isAuthenticated','/describe','describe','get','/:id','show','download','post','tracked','mail','mailmessage:create','create','put','/:id/accept','reject','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x349321,_0x5a91d3){var _0x46dee6=function(_0x5e4257){while(--_0x5e4257){_0x349321['push'](_0x349321['shift']());}};_0x46dee6(++_0x5a91d3);}(_0x6bc9,0x1c2));var _0x96bc=function(_0x2136a6,_0x35af63){_0x2136a6=_0x2136a6-0x0;var _0x55b948=_0x6bc9[_0x2136a6];return _0x55b948;};'use strict';var multer=require(_0x96bc('0x0'));var util=require(_0x96bc('0x1'));var path=require('path');var timeout=require(_0x96bc('0x2'));var express=require(_0x96bc('0x3'));var router=express[_0x96bc('0x4')]();var fs_extra=require(_0x96bc('0x5'));var auth=require(_0x96bc('0x6'));var interaction=require(_0x96bc('0x7'));var config=require(_0x96bc('0x8'));var controller=require(_0x96bc('0x9'));router['get']('/',auth[_0x96bc('0xa')](),controller['index']);router['get'](_0x96bc('0xb'),auth['isAuthenticated'](),controller[_0x96bc('0xc')]);router[_0x96bc('0xd')](_0x96bc('0xe'),auth['isAuthenticated'](),controller[_0x96bc('0xf')]);router[_0x96bc('0xd')]('/:id/download',auth[_0x96bc('0xa')](),controller[_0x96bc('0x10')]);router[_0x96bc('0x11')]('/',auth[_0x96bc('0xa')](),interaction[_0x96bc('0x12')](_0x96bc('0x13'),_0x96bc('0x14')),controller[_0x96bc('0x15')]);router[_0x96bc('0x16')]('/:id',auth[_0x96bc('0xa')](),controller['update']);router[_0x96bc('0x16')](_0x96bc('0x17'),auth[_0x96bc('0xa')](),controller['accept']);router[_0x96bc('0x16')]('/:id/reject',auth[_0x96bc('0xa')](),controller[_0x96bc('0x18')]);router['delete']('/:id',auth[_0x96bc('0xa')](),controller[_0x96bc('0x19')]);module[_0x96bc('0x1a')]=router;