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