906607674583c67e429347ae6b2685ec18e1eca7
[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 _0xac39=['delete','mailinteraction:destroy','destroy','/:id/tags','removeTags','exports','express','Router','../../components/interaction/service','./mailInteraction.controller','isAuthenticated','index','get','/:id','show','/:id/messages','getMessages','/:id/download','post','create','addMessage','tracked','mailinteraction:addtags','addTags','put','mail','mailinteraction:update','update'];(function(_0x4046b5,_0x48787f){var _0x594990=function(_0x5a65be){while(--_0x5a65be){_0x4046b5['push'](_0x4046b5['shift']());}};_0x594990(++_0x48787f);}(_0xac39,0x156));var _0x9ac3=function(_0x590fcc,_0x185936){_0x590fcc=_0x590fcc-0x0;var _0x241595=_0xac39[_0x590fcc];return _0x241595;};'use strict';var express=require(_0x9ac3('0x0'));var router=express[_0x9ac3('0x1')]();var auth=require('../../components/auth/service');var interaction=require(_0x9ac3('0x2'));var controller=require(_0x9ac3('0x3'));router['get']('/',auth[_0x9ac3('0x4')](),controller[_0x9ac3('0x5')]);router[_0x9ac3('0x6')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0x9ac3('0x6')](_0x9ac3('0x7'),auth[_0x9ac3('0x4')](),controller[_0x9ac3('0x8')]);router[_0x9ac3('0x6')](_0x9ac3('0x9'),auth[_0x9ac3('0x4')](),controller[_0x9ac3('0xa')]);router[_0x9ac3('0x6')](_0x9ac3('0xb'),auth[_0x9ac3('0x4')](),controller['download']);router[_0x9ac3('0xc')]('/',auth[_0x9ac3('0x4')](),controller[_0x9ac3('0xd')]);router['post']('/:id/messages',auth[_0x9ac3('0x4')](),controller[_0x9ac3('0xe')]);router[_0x9ac3('0xc')]('/:id/tags',auth[_0x9ac3('0x4')](),interaction[_0x9ac3('0xf')]('mail',_0x9ac3('0x10')),controller[_0x9ac3('0x11')]);router[_0x9ac3('0x12')](_0x9ac3('0x7'),auth['isAuthenticated'](),interaction[_0x9ac3('0xf')](_0x9ac3('0x13'),_0x9ac3('0x14')),controller[_0x9ac3('0x15')]);router[_0x9ac3('0x16')](_0x9ac3('0x7'),auth[_0x9ac3('0x4')](),interaction[_0x9ac3('0xf')]('mail',_0x9ac3('0x17')),controller[_0x9ac3('0x18')]);router[_0x9ac3('0x16')](_0x9ac3('0x19'),auth[_0x9ac3('0x4')](),controller[_0x9ac3('0x1a')]);module[_0x9ac3('0x1b')]=router;