1e1f5053e114bec8514387330deec2ac4629eea4
[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 _0x8ef6=['../../components/auth/service','../../config/environment','./mailInteraction.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','download','post','create','addMessage','tracked','mail','addTags','put','mailinteraction:update','update','mailinteraction:destroy','/:id/tags','removeTags','multer','util','path','connect-timeout','express','Router'];(function(_0x595d8e,_0x3879ec){var _0x4d936d=function(_0x479c60){while(--_0x479c60){_0x595d8e['push'](_0x595d8e['shift']());}};_0x4d936d(++_0x3879ec);}(_0x8ef6,0xf2));var _0x68ef=function(_0x744865,_0x4801ab){_0x744865=_0x744865-0x0;var _0x241ed1=_0x8ef6[_0x744865];return _0x241ed1;};'use strict';var multer=require(_0x68ef('0x0'));var util=require(_0x68ef('0x1'));var path=require(_0x68ef('0x2'));var timeout=require(_0x68ef('0x3'));var express=require(_0x68ef('0x4'));var router=express[_0x68ef('0x5')]();var auth=require(_0x68ef('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x68ef('0x7'));var controller=require(_0x68ef('0x8'));router[_0x68ef('0x9')]('/',auth[_0x68ef('0xa')](),controller['index']);router['get'](_0x68ef('0xb'),auth[_0x68ef('0xa')](),controller[_0x68ef('0xc')]);router['get'](_0x68ef('0xd'),auth[_0x68ef('0xa')](),controller[_0x68ef('0xe')]);router[_0x68ef('0x9')](_0x68ef('0xf'),auth[_0x68ef('0xa')](),controller[_0x68ef('0x10')]);router[_0x68ef('0x9')](_0x68ef('0x11'),auth[_0x68ef('0xa')](),controller[_0x68ef('0x12')]);router[_0x68ef('0x13')]('/',auth['isAuthenticated'](),controller[_0x68ef('0x14')]);router[_0x68ef('0x13')](_0x68ef('0xf'),auth[_0x68ef('0xa')](),controller[_0x68ef('0x15')]);router[_0x68ef('0x13')]('/:id/tags',auth[_0x68ef('0xa')](),interaction[_0x68ef('0x16')](_0x68ef('0x17'),'mailinteraction:addtags'),controller[_0x68ef('0x18')]);router[_0x68ef('0x19')](_0x68ef('0xd'),auth['isAuthenticated'](),interaction[_0x68ef('0x16')](_0x68ef('0x17'),_0x68ef('0x1a')),controller[_0x68ef('0x1b')]);router['delete'](_0x68ef('0xd'),auth['isAuthenticated'](),interaction['tracked'](_0x68ef('0x17'),_0x68ef('0x1c')),controller['destroy']);router['delete'](_0x68ef('0x1d'),auth[_0x68ef('0xa')](),controller[_0x68ef('0x1e')]);module['exports']=router;