1928384ac2740ef5ba5b362bcac668321925a6b3
[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 _0x8972=['../../components/auth/service','../../components/interaction/service','./mailInteraction.controller','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/messages','download','post','create','addMessage','/:id/tags','tracked','addTags','put','mail','delete','mailinteraction:destroy','destroy','removeTags','exports','express','Router'];(function(_0x3fe2ea,_0x485b45){var _0x5185de=function(_0x396148){while(--_0x396148){_0x3fe2ea['push'](_0x3fe2ea['shift']());}};_0x5185de(++_0x485b45);}(_0x8972,0x178));var _0x2897=function(_0x44aa6a,_0x148a1b){_0x44aa6a=_0x44aa6a-0x0;var _0x58fa9b=_0x8972[_0x44aa6a];return _0x58fa9b;};'use strict';var express=require(_0x2897('0x0'));var router=express[_0x2897('0x1')]();var auth=require(_0x2897('0x2'));var interaction=require(_0x2897('0x3'));var controller=require(_0x2897('0x4'));router['get']('/',auth[_0x2897('0x5')](),controller[_0x2897('0x6')]);router[_0x2897('0x7')](_0x2897('0x8'),auth[_0x2897('0x5')](),controller[_0x2897('0x9')]);router['get'](_0x2897('0xa'),auth['isAuthenticated'](),controller[_0x2897('0xb')]);router['get'](_0x2897('0xc'),auth[_0x2897('0x5')](),controller['getMessages']);router[_0x2897('0x7')]('/:id/download',auth[_0x2897('0x5')](),controller[_0x2897('0xd')]);router[_0x2897('0xe')]('/',auth[_0x2897('0x5')](),controller[_0x2897('0xf')]);router[_0x2897('0xe')](_0x2897('0xc'),auth[_0x2897('0x5')](),controller[_0x2897('0x10')]);router[_0x2897('0xe')](_0x2897('0x11'),auth[_0x2897('0x5')](),interaction[_0x2897('0x12')]('mail','mailinteraction:addtags'),controller[_0x2897('0x13')]);router[_0x2897('0x14')](_0x2897('0xa'),auth[_0x2897('0x5')](),interaction['tracked'](_0x2897('0x15'),'mailinteraction:update'),controller['update']);router[_0x2897('0x16')]('/:id',auth[_0x2897('0x5')](),interaction['tracked'](_0x2897('0x15'),_0x2897('0x17')),controller[_0x2897('0x18')]);router[_0x2897('0x16')](_0x2897('0x11'),auth[_0x2897('0x5')](),controller[_0x2897('0x19')]);module[_0x2897('0x1a')]=router;