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