bd8bd23069d27feeb2df59193a6b924697940b11
[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 _0x79be=['./mailInteraction.controller','get','isAuthenticated','index','/:id','/:id/messages','download','post','create','addMessage','tracked','mail','mailinteraction:addtags','addTags','mailinteraction:update','update','delete','/:id/tags','removeTags','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x79be,0x107));var _0xe79b=function(_0x5da672,_0x33d55f){_0x5da672=_0x5da672-0x0;var _0x4031c9=_0x79be[_0x5da672];return _0x4031c9;};'use strict';var multer=require('multer');var util=require(_0xe79b('0x0'));var path=require(_0xe79b('0x1'));var timeout=require(_0xe79b('0x2'));var express=require(_0xe79b('0x3'));var router=express[_0xe79b('0x4')]();var fs_extra=require(_0xe79b('0x5'));var auth=require(_0xe79b('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xe79b('0x7'));router[_0xe79b('0x8')]('/',auth[_0xe79b('0x9')](),controller[_0xe79b('0xa')]);router[_0xe79b('0x8')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0xe79b('0x8')](_0xe79b('0xb'),auth[_0xe79b('0x9')](),controller['show']);router[_0xe79b('0x8')](_0xe79b('0xc'),auth['isAuthenticated'](),controller['getMessages']);router['get']('/:id/download',auth[_0xe79b('0x9')](),controller[_0xe79b('0xd')]);router[_0xe79b('0xe')]('/',auth[_0xe79b('0x9')](),controller[_0xe79b('0xf')]);router[_0xe79b('0xe')](_0xe79b('0xc'),auth[_0xe79b('0x9')](),controller[_0xe79b('0x10')]);router[_0xe79b('0xe')]('/:id/tags',auth['isAuthenticated'](),interaction[_0xe79b('0x11')](_0xe79b('0x12'),_0xe79b('0x13')),controller[_0xe79b('0x14')]);router['put']('/:id',auth['isAuthenticated'](),interaction['tracked'](_0xe79b('0x12'),_0xe79b('0x15')),controller[_0xe79b('0x16')]);router[_0xe79b('0x17')](_0xe79b('0xb'),auth[_0xe79b('0x9')](),interaction[_0xe79b('0x11')]('mail','mailinteraction:destroy'),controller['destroy']);router['delete'](_0xe79b('0x18'),auth[_0xe79b('0x9')](),controller[_0xe79b('0x19')]);module[_0xe79b('0x1a')]=router;