6f31f686c1dab535839a1fd87a492b66dff40731
[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 _0xf876=['./mailInteraction.controller','isAuthenticated','index','get','/describe','describe','/:id','/:id/messages','getMessages','/:id/download','download','post','create','/:id/tags','tracked','mail','put','mailinteraction:update','update','delete','mailinteraction:destroy','destroy','removeTags','exports','Router'];(function(_0x5bea5c,_0x5681b8){var _0x42309d=function(_0x160aec){while(--_0x160aec){_0x5bea5c['push'](_0x5bea5c['shift']());}};_0x42309d(++_0x5681b8);}(_0xf876,0x1c1));var _0x6f87=function(_0x3005d5,_0xf588c7){_0x3005d5=_0x3005d5-0x0;var _0x547c7e=_0xf876[_0x3005d5];return _0x547c7e;};'use strict';var express=require('express');var router=express[_0x6f87('0x0')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var controller=require(_0x6f87('0x1'));router['get']('/',auth[_0x6f87('0x2')](),controller[_0x6f87('0x3')]);router[_0x6f87('0x4')](_0x6f87('0x5'),auth[_0x6f87('0x2')](),controller[_0x6f87('0x6')]);router[_0x6f87('0x4')](_0x6f87('0x7'),auth['isAuthenticated'](),controller['show']);router['get'](_0x6f87('0x8'),auth[_0x6f87('0x2')](),controller[_0x6f87('0x9')]);router[_0x6f87('0x4')](_0x6f87('0xa'),auth[_0x6f87('0x2')](),controller[_0x6f87('0xb')]);router[_0x6f87('0xc')]('/',auth[_0x6f87('0x2')](),controller[_0x6f87('0xd')]);router[_0x6f87('0xc')]('/:id/messages',auth[_0x6f87('0x2')](),controller['addMessage']);router[_0x6f87('0xc')](_0x6f87('0xe'),auth[_0x6f87('0x2')](),interaction[_0x6f87('0xf')](_0x6f87('0x10'),'mailinteraction:addtags'),controller['addTags']);router[_0x6f87('0x11')](_0x6f87('0x7'),auth[_0x6f87('0x2')](),interaction[_0x6f87('0xf')](_0x6f87('0x10'),_0x6f87('0x12')),controller[_0x6f87('0x13')]);router[_0x6f87('0x14')](_0x6f87('0x7'),auth['isAuthenticated'](),interaction[_0x6f87('0xf')](_0x6f87('0x10'),_0x6f87('0x15')),controller[_0x6f87('0x16')]);router['delete'](_0x6f87('0xe'),auth[_0x6f87('0x2')](),controller[_0x6f87('0x17')]);module[_0x6f87('0x18')]=router;