722c89c1ba0832b700ba34c6021c0b96590d5699
[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 _0xb01b=['../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show','/:id/messages','getMessages','/:id/download','download','create','post','addMessage','/:id/tags','tracked','mail','mailinteraction:addtags','put','update','delete','mailinteraction:destroy','destroy','express','Router'];(function(_0x2fe176,_0x40f0da){var _0x5816a5=function(_0x469238){while(--_0x469238){_0x2fe176['push'](_0x2fe176['shift']());}};_0x5816a5(++_0x40f0da);}(_0xb01b,0x8e));var _0xbb01=function(_0x4ac90e,_0x59c810){_0x4ac90e=_0x4ac90e-0x0;var _0x31b7d2=_0xb01b[_0x4ac90e];return _0x31b7d2;};'use strict';var express=require(_0xbb01('0x0'));var router=express[_0xbb01('0x1')]();var auth=require(_0xbb01('0x2'));var interaction=require(_0xbb01('0x3'));var controller=require('./mailInteraction.controller');router[_0xbb01('0x4')]('/',auth[_0xbb01('0x5')](),controller[_0xbb01('0x6')]);router[_0xbb01('0x4')]('/describe',auth[_0xbb01('0x5')](),controller['describe']);router['get']('/:id',auth[_0xbb01('0x5')](),controller[_0xbb01('0x7')]);router['get'](_0xbb01('0x8'),auth[_0xbb01('0x5')](),controller[_0xbb01('0x9')]);router['get'](_0xbb01('0xa'),auth['isAuthenticated'](),controller[_0xbb01('0xb')]);router['post']('/',auth[_0xbb01('0x5')](),controller[_0xbb01('0xc')]);router[_0xbb01('0xd')](_0xbb01('0x8'),auth[_0xbb01('0x5')](),controller[_0xbb01('0xe')]);router[_0xbb01('0xd')](_0xbb01('0xf'),auth['isAuthenticated'](),interaction[_0xbb01('0x10')](_0xbb01('0x11'),_0xbb01('0x12')),controller['addTags']);router[_0xbb01('0x13')]('/:id',auth[_0xbb01('0x5')](),interaction[_0xbb01('0x10')](_0xbb01('0x11'),'mailinteraction:update'),controller[_0xbb01('0x14')]);router[_0xbb01('0x15')]('/:id',auth['isAuthenticated'](),interaction[_0xbb01('0x10')](_0xbb01('0x11'),_0xbb01('0x16')),controller[_0xbb01('0x17')]);router[_0xbb01('0x15')]('/:id/tags',auth[_0xbb01('0x5')](),controller['removeTags']);module['exports']=router;