ff3f725d3b9ff0e2ab396b691c1bb53dd14e72cc
[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 _0x682c=['show','/:id/messages','getMessages','/:id/download','download','post','create','addMessage','/:id/tags','tracked','mail','addTags','mailinteraction:update','update','delete','removeTags','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailInteraction.controller','get','isAuthenticated','/:id'];(function(_0x25a37d,_0x3c81fc){var _0x3421b6=function(_0x48d8f8){while(--_0x48d8f8){_0x25a37d['push'](_0x25a37d['shift']());}};_0x3421b6(++_0x3c81fc);}(_0x682c,0x129));var _0xc682=function(_0x4080a2,_0x41b2be){_0x4080a2=_0x4080a2-0x0;var _0x57c593=_0x682c[_0x4080a2];return _0x57c593;};'use strict';var multer=require(_0xc682('0x0'));var util=require(_0xc682('0x1'));var path=require(_0xc682('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xc682('0x3')]();var auth=require(_0xc682('0x4'));var interaction=require(_0xc682('0x5'));var config=require(_0xc682('0x6'));var controller=require(_0xc682('0x7'));router[_0xc682('0x8')]('/',auth[_0xc682('0x9')](),controller['index']);router[_0xc682('0x8')]('/describe',auth[_0xc682('0x9')](),controller['describe']);router[_0xc682('0x8')](_0xc682('0xa'),auth['isAuthenticated'](),controller[_0xc682('0xb')]);router['get'](_0xc682('0xc'),auth[_0xc682('0x9')](),controller[_0xc682('0xd')]);router[_0xc682('0x8')](_0xc682('0xe'),auth['isAuthenticated'](),controller[_0xc682('0xf')]);router[_0xc682('0x10')]('/',auth[_0xc682('0x9')](),controller[_0xc682('0x11')]);router[_0xc682('0x10')](_0xc682('0xc'),auth[_0xc682('0x9')](),controller[_0xc682('0x12')]);router[_0xc682('0x10')](_0xc682('0x13'),auth['isAuthenticated'](),interaction[_0xc682('0x14')](_0xc682('0x15'),'mailinteraction:addtags'),controller[_0xc682('0x16')]);router['put']('/:id',auth['isAuthenticated'](),interaction[_0xc682('0x14')](_0xc682('0x15'),_0xc682('0x17')),controller[_0xc682('0x18')]);router['delete'](_0xc682('0xa'),auth[_0xc682('0x9')](),interaction[_0xc682('0x14')](_0xc682('0x15'),'mailinteraction:destroy'),controller['destroy']);router[_0xc682('0x19')]('/:id/tags',auth['isAuthenticated'](),controller[_0xc682('0x1a')]);module[_0xc682('0x1b')]=router;