Built motion from commit 14588770.|2.5.38
[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 _0x3692=['addMessage','tracked','mail','mailinteraction:addtags','addTags','put','update','delete','mailinteraction:destroy','destroy','removeTags','exports','Router','../../components/auth/service','./mailInteraction.controller','get','/describe','isAuthenticated','describe','/:id','show','/:id/messages','getMessages','post'];(function(_0x5df276,_0x213082){var _0x50b0ae=function(_0x30e1f4){while(--_0x30e1f4){_0x5df276['push'](_0x5df276['shift']());}};_0x50b0ae(++_0x213082);}(_0x3692,0xfc));var _0x2369=function(_0x359dcf,_0x5786cf){_0x359dcf=_0x359dcf-0x0;var _0x25a5c5=_0x3692[_0x359dcf];return _0x25a5c5;};'use strict';var express=require('express');var router=express[_0x2369('0x0')]();var auth=require(_0x2369('0x1'));var interaction=require('../../components/interaction/service');var controller=require(_0x2369('0x2'));router[_0x2369('0x3')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x2369('0x4'),auth[_0x2369('0x5')](),controller[_0x2369('0x6')]);router['get'](_0x2369('0x7'),auth[_0x2369('0x5')](),controller[_0x2369('0x8')]);router['get'](_0x2369('0x9'),auth['isAuthenticated'](),controller[_0x2369('0xa')]);router['get']('/:id/download',auth[_0x2369('0x5')](),controller['download']);router['post']('/',auth[_0x2369('0x5')](),controller['create']);router[_0x2369('0xb')]('/:id/messages',auth[_0x2369('0x5')](),controller[_0x2369('0xc')]);router[_0x2369('0xb')]('/:id/tags',auth[_0x2369('0x5')](),interaction[_0x2369('0xd')](_0x2369('0xe'),_0x2369('0xf')),controller[_0x2369('0x10')]);router[_0x2369('0x11')](_0x2369('0x7'),auth['isAuthenticated'](),interaction[_0x2369('0xd')](_0x2369('0xe'),'mailinteraction:update'),controller[_0x2369('0x12')]);router[_0x2369('0x13')](_0x2369('0x7'),auth[_0x2369('0x5')](),interaction[_0x2369('0xd')](_0x2369('0xe'),_0x2369('0x14')),controller[_0x2369('0x15')]);router[_0x2369('0x13')]('/:id/tags',auth[_0x2369('0x5')](),controller[_0x2369('0x16')]);module[_0x2369('0x17')]=router;