Built motion from commit bbec7235.|2.6.20
[motion2.git] / server / api / mailInteraction / 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 _0x8b08=['mail','mailinteraction:addtags','addTags','put','tracked','mailinteraction:update','update','delete','mailinteraction:destroy','destroy','/:id/tags','removeTags','exports','Router','../../components/interaction/service','./mailInteraction.controller','get','isAuthenticated','/describe','/:id','/:id/messages','getMessages','/:id/download','download','create','post'];(function(_0x2c19fa,_0x1bd137){var _0x493ea0=function(_0x52e520){while(--_0x52e520){_0x2c19fa['push'](_0x2c19fa['shift']());}};_0x493ea0(++_0x1bd137);}(_0x8b08,0x8f));var _0x88b0=function(_0x5e6920,_0x30b280){_0x5e6920=_0x5e6920-0x0;var _0x209d5d=_0x8b08[_0x5e6920];return _0x209d5d;};'use strict';var express=require('express');var router=express[_0x88b0('0x0')]();var auth=require('../../components/auth/service');var interaction=require(_0x88b0('0x1'));var controller=require(_0x88b0('0x2'));router[_0x88b0('0x3')]('/',auth[_0x88b0('0x4')](),controller['index']);router['get'](_0x88b0('0x5'),auth[_0x88b0('0x4')](),controller['describe']);router[_0x88b0('0x3')](_0x88b0('0x6'),auth[_0x88b0('0x4')](),controller['show']);router['get'](_0x88b0('0x7'),auth['isAuthenticated'](),controller[_0x88b0('0x8')]);router['get'](_0x88b0('0x9'),auth[_0x88b0('0x4')](),controller[_0x88b0('0xa')]);router['post']('/',auth[_0x88b0('0x4')](),controller[_0x88b0('0xb')]);router[_0x88b0('0xc')](_0x88b0('0x7'),auth[_0x88b0('0x4')](),controller['addMessage']);router[_0x88b0('0xc')]('/:id/tags',auth[_0x88b0('0x4')](),interaction['tracked'](_0x88b0('0xd'),_0x88b0('0xe')),controller[_0x88b0('0xf')]);router[_0x88b0('0x10')]('/:id',auth['isAuthenticated'](),interaction[_0x88b0('0x11')](_0x88b0('0xd'),_0x88b0('0x12')),controller[_0x88b0('0x13')]);router[_0x88b0('0x14')]('/:id',auth[_0x88b0('0x4')](),interaction[_0x88b0('0x11')](_0x88b0('0xd'),_0x88b0('0x15')),controller[_0x88b0('0x16')]);router['delete'](_0x88b0('0x17'),auth[_0x88b0('0x4')](),controller[_0x88b0('0x18')]);module[_0x88b0('0x19')]=router;