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