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