Built motion from commit (unavailable).|2.4.14
[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 _0xf2ca=['mailmessage:create','create','put','/:id','/:id/accept','accept','/:id/reject','reject','delete','destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailMessage.controller','isAuthenticated','index','get','/describe','describe','download','post'];(function(_0x27cdcc,_0x1c838c){var _0x3ca1ec=function(_0x3c3613){while(--_0x3c3613){_0x27cdcc['push'](_0x27cdcc['shift']());}};_0x3ca1ec(++_0x1c838c);}(_0xf2ca,0x16a));var _0xaf2c=function(_0x41b0a8,_0x1b05cc){_0x41b0a8=_0x41b0a8-0x0;var _0x3a83d4=_0xf2ca[_0x41b0a8];return _0x3a83d4;};'use strict';var multer=require(_0xaf2c('0x0'));var util=require(_0xaf2c('0x1'));var path=require(_0xaf2c('0x2'));var timeout=require('connect-timeout');var express=require(_0xaf2c('0x3'));var router=express[_0xaf2c('0x4')]();var auth=require(_0xaf2c('0x5'));var interaction=require(_0xaf2c('0x6'));var config=require(_0xaf2c('0x7'));var controller=require(_0xaf2c('0x8'));router['get']('/',auth[_0xaf2c('0x9')](),controller[_0xaf2c('0xa')]);router[_0xaf2c('0xb')](_0xaf2c('0xc'),auth['isAuthenticated'](),controller[_0xaf2c('0xd')]);router[_0xaf2c('0xb')]('/:id',auth[_0xaf2c('0x9')](),controller['show']);router[_0xaf2c('0xb')]('/:id/download',auth[_0xaf2c('0x9')](),controller[_0xaf2c('0xe')]);router[_0xaf2c('0xf')]('/',auth[_0xaf2c('0x9')](),interaction['tracked']('mail',_0xaf2c('0x10')),controller[_0xaf2c('0x11')]);router[_0xaf2c('0x12')](_0xaf2c('0x13'),auth[_0xaf2c('0x9')](),controller['update']);router['put'](_0xaf2c('0x14'),auth[_0xaf2c('0x9')](),controller[_0xaf2c('0x15')]);router[_0xaf2c('0x12')](_0xaf2c('0x16'),auth[_0xaf2c('0x9')](),controller[_0xaf2c('0x17')]);router[_0xaf2c('0x18')](_0xaf2c('0x13'),auth[_0xaf2c('0x9')](),controller[_0xaf2c('0x19')]);module[_0xaf2c('0x1a')]=router;