1c9f5ade2a8392fa49116e7439bf110a16046641
[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 _0x7746=['express','../../components/auth/service','../../components/interaction/service','./mailInteraction.controller','get','isAuthenticated','index','describe','/:id','/:id/messages','getMessages','/:id/download','post','create','tracked','mail','addTags','mailinteraction:update','update','delete','mailinteraction:destroy','destroy','/:id/tags','exports'];(function(_0x517cd7,_0x4eed1a){var _0x557e73=function(_0x54ab86){while(--_0x54ab86){_0x517cd7['push'](_0x517cd7['shift']());}};_0x557e73(++_0x4eed1a);}(_0x7746,0x1e0));var _0x6774=function(_0x41abab,_0x3b6cc4){_0x41abab=_0x41abab-0x0;var _0x259af5=_0x7746[_0x41abab];return _0x259af5;};'use strict';var express=require(_0x6774('0x0'));var router=express['Router']();var auth=require(_0x6774('0x1'));var interaction=require(_0x6774('0x2'));var controller=require(_0x6774('0x3'));router[_0x6774('0x4')]('/',auth[_0x6774('0x5')](),controller[_0x6774('0x6')]);router[_0x6774('0x4')]('/describe',auth[_0x6774('0x5')](),controller[_0x6774('0x7')]);router['get'](_0x6774('0x8'),auth['isAuthenticated'](),controller['show']);router[_0x6774('0x4')](_0x6774('0x9'),auth[_0x6774('0x5')](),controller[_0x6774('0xa')]);router[_0x6774('0x4')](_0x6774('0xb'),auth[_0x6774('0x5')](),controller['download']);router[_0x6774('0xc')]('/',auth[_0x6774('0x5')](),controller[_0x6774('0xd')]);router[_0x6774('0xc')](_0x6774('0x9'),auth['isAuthenticated'](),controller['addMessage']);router[_0x6774('0xc')]('/:id/tags',auth[_0x6774('0x5')](),interaction[_0x6774('0xe')](_0x6774('0xf'),'mailinteraction:addtags'),controller[_0x6774('0x10')]);router['put'](_0x6774('0x8'),auth['isAuthenticated'](),interaction['tracked'](_0x6774('0xf'),_0x6774('0x11')),controller[_0x6774('0x12')]);router[_0x6774('0x13')](_0x6774('0x8'),auth['isAuthenticated'](),interaction[_0x6774('0xe')](_0x6774('0xf'),_0x6774('0x14')),controller[_0x6774('0x15')]);router['delete'](_0x6774('0x16'),auth[_0x6774('0x5')](),controller['removeTags']);module[_0x6774('0x17')]=router;