Built motion from commit 43538d75.|2.5.35
[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 _0x57cd=['/:id/download','download','post','addMessage','/:id/tags','tracked','mail','mailinteraction:addtags','addTags','put','update','delete','mailinteraction:destroy','removeTags','exports','express','../../components/auth/service','../../components/interaction/service','./mailInteraction.controller','get','isAuthenticated','index','describe','/:id','show','getMessages'];(function(_0x9a3e0f,_0x2f796d){var _0x3d2a9a=function(_0x3aeb03){while(--_0x3aeb03){_0x9a3e0f['push'](_0x9a3e0f['shift']());}};_0x3d2a9a(++_0x2f796d);}(_0x57cd,0x12d));var _0xd57c=function(_0x35fa2a,_0x2a0b4a){_0x35fa2a=_0x35fa2a-0x0;var _0x1be582=_0x57cd[_0x35fa2a];return _0x1be582;};'use strict';var express=require(_0xd57c('0x0'));var router=express['Router']();var auth=require(_0xd57c('0x1'));var interaction=require(_0xd57c('0x2'));var controller=require(_0xd57c('0x3'));router[_0xd57c('0x4')]('/',auth[_0xd57c('0x5')](),controller[_0xd57c('0x6')]);router['get']('/describe',auth[_0xd57c('0x5')](),controller[_0xd57c('0x7')]);router[_0xd57c('0x4')](_0xd57c('0x8'),auth[_0xd57c('0x5')](),controller[_0xd57c('0x9')]);router[_0xd57c('0x4')]('/:id/messages',auth[_0xd57c('0x5')](),controller[_0xd57c('0xa')]);router[_0xd57c('0x4')](_0xd57c('0xb'),auth['isAuthenticated'](),controller[_0xd57c('0xc')]);router[_0xd57c('0xd')]('/',auth[_0xd57c('0x5')](),controller['create']);router[_0xd57c('0xd')]('/:id/messages',auth[_0xd57c('0x5')](),controller[_0xd57c('0xe')]);router[_0xd57c('0xd')](_0xd57c('0xf'),auth[_0xd57c('0x5')](),interaction[_0xd57c('0x10')](_0xd57c('0x11'),_0xd57c('0x12')),controller[_0xd57c('0x13')]);router[_0xd57c('0x14')](_0xd57c('0x8'),auth[_0xd57c('0x5')](),interaction['tracked'](_0xd57c('0x11'),'mailinteraction:update'),controller[_0xd57c('0x15')]);router[_0xd57c('0x16')](_0xd57c('0x8'),auth['isAuthenticated'](),interaction[_0xd57c('0x10')](_0xd57c('0x11'),_0xd57c('0x17')),controller['destroy']);router[_0xd57c('0x16')](_0xd57c('0xf'),auth[_0xd57c('0x5')](),controller[_0xd57c('0x18')]);module[_0xd57c('0x19')]=router;