Built motion from commit 616d3211.|2.6.4
[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 _0xbb85=['put','mailinteraction:update','delete','mail','mailinteraction:destroy','destroy','removeTags','exports','Router','../../components/interaction/service','./mailInteraction.controller','isAuthenticated','get','/describe','describe','/:id','show','/:id/messages','download','create','post','addMessage','/:id/tags','tracked','mailinteraction:addtags','addTags'];(function(_0x275d66,_0x346f42){var _0x1c747c=function(_0x9fa883){while(--_0x9fa883){_0x275d66['push'](_0x275d66['shift']());}};_0x1c747c(++_0x346f42);}(_0xbb85,0xa4));var _0x5bb8=function(_0x4998b2,_0x3e3c95){_0x4998b2=_0x4998b2-0x0;var _0x16b7e1=_0xbb85[_0x4998b2];return _0x16b7e1;};'use strict';var express=require('express');var router=express[_0x5bb8('0x0')]();var auth=require('../../components/auth/service');var interaction=require(_0x5bb8('0x1'));var controller=require(_0x5bb8('0x2'));router['get']('/',auth[_0x5bb8('0x3')](),controller['index']);router[_0x5bb8('0x4')](_0x5bb8('0x5'),auth['isAuthenticated'](),controller[_0x5bb8('0x6')]);router[_0x5bb8('0x4')](_0x5bb8('0x7'),auth[_0x5bb8('0x3')](),controller[_0x5bb8('0x8')]);router[_0x5bb8('0x4')](_0x5bb8('0x9'),auth[_0x5bb8('0x3')](),controller['getMessages']);router['get']('/:id/download',auth['isAuthenticated'](),controller[_0x5bb8('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0x5bb8('0xb')]);router[_0x5bb8('0xc')](_0x5bb8('0x9'),auth[_0x5bb8('0x3')](),controller[_0x5bb8('0xd')]);router['post'](_0x5bb8('0xe'),auth[_0x5bb8('0x3')](),interaction[_0x5bb8('0xf')]('mail',_0x5bb8('0x10')),controller[_0x5bb8('0x11')]);router[_0x5bb8('0x12')](_0x5bb8('0x7'),auth['isAuthenticated'](),interaction['tracked']('mail',_0x5bb8('0x13')),controller['update']);router[_0x5bb8('0x14')](_0x5bb8('0x7'),auth['isAuthenticated'](),interaction[_0x5bb8('0xf')](_0x5bb8('0x15'),_0x5bb8('0x16')),controller[_0x5bb8('0x17')]);router[_0x5bb8('0x14')](_0x5bb8('0xe'),auth[_0x5bb8('0x3')](),controller[_0x5bb8('0x18')]);module[_0x5bb8('0x19')]=router;