6290ad0caa6a0df98adf6e0ba92c87519d8fd41c
[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 _0x80db=['update','mailinteraction:destroy','destroy','delete','exports','../../components/auth/service','../../components/interaction/service','./mailInteraction.controller','get','isAuthenticated','/describe','describe','show','/:id/download','download','post','create','addMessage','/:id/tags','tracked','mailinteraction:addtags','put','/:id','mail'];(function(_0x13cd99,_0x3650a2){var _0x11391f=function(_0x2dab78){while(--_0x2dab78){_0x13cd99['push'](_0x13cd99['shift']());}};_0x11391f(++_0x3650a2);}(_0x80db,0xc5));var _0xb80d=function(_0x37f594,_0x40aa2c){_0x37f594=_0x37f594-0x0;var _0x1782c5=_0x80db[_0x37f594];return _0x1782c5;};'use strict';var express=require('express');var router=express['Router']();var auth=require(_0xb80d('0x0'));var interaction=require(_0xb80d('0x1'));var controller=require(_0xb80d('0x2'));router[_0xb80d('0x3')]('/',auth[_0xb80d('0x4')](),controller['index']);router[_0xb80d('0x3')](_0xb80d('0x5'),auth[_0xb80d('0x4')](),controller[_0xb80d('0x6')]);router['get']('/:id',auth[_0xb80d('0x4')](),controller[_0xb80d('0x7')]);router[_0xb80d('0x3')]('/:id/messages',auth['isAuthenticated'](),controller['getMessages']);router[_0xb80d('0x3')](_0xb80d('0x8'),auth[_0xb80d('0x4')](),controller[_0xb80d('0x9')]);router[_0xb80d('0xa')]('/',auth[_0xb80d('0x4')](),controller[_0xb80d('0xb')]);router[_0xb80d('0xa')]('/:id/messages',auth[_0xb80d('0x4')](),controller[_0xb80d('0xc')]);router['post'](_0xb80d('0xd'),auth[_0xb80d('0x4')](),interaction[_0xb80d('0xe')]('mail',_0xb80d('0xf')),controller['addTags']);router[_0xb80d('0x10')](_0xb80d('0x11'),auth[_0xb80d('0x4')](),interaction[_0xb80d('0xe')](_0xb80d('0x12'),'mailinteraction:update'),controller[_0xb80d('0x13')]);router['delete'](_0xb80d('0x11'),auth[_0xb80d('0x4')](),interaction[_0xb80d('0xe')](_0xb80d('0x12'),_0xb80d('0x14')),controller[_0xb80d('0x15')]);router[_0xb80d('0x16')](_0xb80d('0xd'),auth['isAuthenticated'](),controller['removeTags']);module[_0xb80d('0x17')]=router;