4716c1997297a6ddc2f32464670ff2ab136a3771
[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 _0xf64b=['addTags','mailinteraction:update','update','delete','destroy','removeTags','exports','express','Router','../../components/auth/service','../../components/interaction/service','./mailInteraction.controller','isAuthenticated','index','get','/describe','/:id','show','/:id/messages','/:id/download','download','post','create','addMessage','/:id/tags','tracked','mail','mailinteraction:addtags'];(function(_0x27af45,_0x1b57aa){var _0x18df21=function(_0x4b7679){while(--_0x4b7679){_0x27af45['push'](_0x27af45['shift']());}};_0x18df21(++_0x1b57aa);}(_0xf64b,0x1ab));var _0xbf64=function(_0x310504,_0x26ad95){_0x310504=_0x310504-0x0;var _0x5b36d0=_0xf64b[_0x310504];return _0x5b36d0;};'use strict';var express=require(_0xbf64('0x0'));var router=express[_0xbf64('0x1')]();var auth=require(_0xbf64('0x2'));var interaction=require(_0xbf64('0x3'));var controller=require(_0xbf64('0x4'));router['get']('/',auth[_0xbf64('0x5')](),controller[_0xbf64('0x6')]);router[_0xbf64('0x7')](_0xbf64('0x8'),auth[_0xbf64('0x5')](),controller['describe']);router[_0xbf64('0x7')](_0xbf64('0x9'),auth[_0xbf64('0x5')](),controller[_0xbf64('0xa')]);router[_0xbf64('0x7')](_0xbf64('0xb'),auth[_0xbf64('0x5')](),controller['getMessages']);router['get'](_0xbf64('0xc'),auth[_0xbf64('0x5')](),controller[_0xbf64('0xd')]);router[_0xbf64('0xe')]('/',auth[_0xbf64('0x5')](),controller[_0xbf64('0xf')]);router[_0xbf64('0xe')](_0xbf64('0xb'),auth[_0xbf64('0x5')](),controller[_0xbf64('0x10')]);router[_0xbf64('0xe')](_0xbf64('0x11'),auth[_0xbf64('0x5')](),interaction[_0xbf64('0x12')](_0xbf64('0x13'),_0xbf64('0x14')),controller[_0xbf64('0x15')]);router['put'](_0xbf64('0x9'),auth[_0xbf64('0x5')](),interaction['tracked']('mail',_0xbf64('0x16')),controller[_0xbf64('0x17')]);router[_0xbf64('0x18')]('/:id',auth['isAuthenticated'](),interaction['tracked'](_0xbf64('0x13'),'mailinteraction:destroy'),controller[_0xbf64('0x19')]);router['delete'](_0xbf64('0x11'),auth[_0xbf64('0x5')](),controller[_0xbf64('0x1a')]);module[_0xbf64('0x1b')]=router;