c6e4ee7f48b35cc39947b60e988295ade4b37ffb
[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 _0x83c2=['mailinteraction:addtags','mailinteraction:update','update','delete','mailinteraction:destroy','destroy','/:id/tags','removeTags','exports','express','Router','../../components/auth/service','../../components/interaction/service','./mailInteraction.controller','get','isAuthenticated','index','/:id','show','/:id/messages','/:id/download','download','post','create','tracked','mail'];(function(_0xe5b5f5,_0x18f5ec){var _0xc71b65=function(_0x3fa688){while(--_0x3fa688){_0xe5b5f5['push'](_0xe5b5f5['shift']());}};_0xc71b65(++_0x18f5ec);}(_0x83c2,0x1c3));var _0x283c=function(_0x4ec7f2,_0x3d92d2){_0x4ec7f2=_0x4ec7f2-0x0;var _0x118004=_0x83c2[_0x4ec7f2];return _0x118004;};'use strict';var express=require(_0x283c('0x0'));var router=express[_0x283c('0x1')]();var auth=require(_0x283c('0x2'));var interaction=require(_0x283c('0x3'));var controller=require(_0x283c('0x4'));router[_0x283c('0x5')]('/',auth[_0x283c('0x6')](),controller[_0x283c('0x7')]);router[_0x283c('0x5')]('/describe',auth[_0x283c('0x6')](),controller['describe']);router['get'](_0x283c('0x8'),auth[_0x283c('0x6')](),controller[_0x283c('0x9')]);router['get'](_0x283c('0xa'),auth['isAuthenticated'](),controller['getMessages']);router[_0x283c('0x5')](_0x283c('0xb'),auth[_0x283c('0x6')](),controller[_0x283c('0xc')]);router[_0x283c('0xd')]('/',auth[_0x283c('0x6')](),controller[_0x283c('0xe')]);router[_0x283c('0xd')]('/:id/messages',auth[_0x283c('0x6')](),controller['addMessage']);router['post']('/:id/tags',auth[_0x283c('0x6')](),interaction[_0x283c('0xf')](_0x283c('0x10'),_0x283c('0x11')),controller['addTags']);router['put'](_0x283c('0x8'),auth['isAuthenticated'](),interaction[_0x283c('0xf')]('mail',_0x283c('0x12')),controller[_0x283c('0x13')]);router[_0x283c('0x14')](_0x283c('0x8'),auth[_0x283c('0x6')](),interaction[_0x283c('0xf')]('mail',_0x283c('0x15')),controller[_0x283c('0x16')]);router[_0x283c('0x14')](_0x283c('0x17'),auth[_0x283c('0x6')](),controller[_0x283c('0x18')]);module[_0x283c('0x19')]=router;