Built motion from commit da617fac.|2.6.6
[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 _0x2071=['mail','mailinteraction:addtags','addTags','tracked','mailinteraction:update','update','mailinteraction:destroy','destroy','delete','removeTags','express','Router','../../components/interaction/service','./mailInteraction.controller','get','/describe','isAuthenticated','/:id','/:id/messages','getMessages','/:id/download','download','post','create','addMessage','/:id/tags'];(function(_0xabfec4,_0x35076e){var _0x7bafa2=function(_0x52d551){while(--_0x52d551){_0xabfec4['push'](_0xabfec4['shift']());}};_0x7bafa2(++_0x35076e);}(_0x2071,0x10e));var _0x1207=function(_0xe2c95e,_0x3e6545){_0xe2c95e=_0xe2c95e-0x0;var _0x42ce6f=_0x2071[_0xe2c95e];return _0x42ce6f;};'use strict';var express=require(_0x1207('0x0'));var router=express[_0x1207('0x1')]();var auth=require('../../components/auth/service');var interaction=require(_0x1207('0x2'));var controller=require(_0x1207('0x3'));router[_0x1207('0x4')]('/',auth['isAuthenticated'](),controller['index']);router[_0x1207('0x4')](_0x1207('0x5'),auth[_0x1207('0x6')](),controller['describe']);router[_0x1207('0x4')](_0x1207('0x7'),auth[_0x1207('0x6')](),controller['show']);router[_0x1207('0x4')](_0x1207('0x8'),auth['isAuthenticated'](),controller[_0x1207('0x9')]);router[_0x1207('0x4')](_0x1207('0xa'),auth[_0x1207('0x6')](),controller[_0x1207('0xb')]);router[_0x1207('0xc')]('/',auth['isAuthenticated'](),controller[_0x1207('0xd')]);router[_0x1207('0xc')]('/:id/messages',auth[_0x1207('0x6')](),controller[_0x1207('0xe')]);router[_0x1207('0xc')](_0x1207('0xf'),auth[_0x1207('0x6')](),interaction['tracked'](_0x1207('0x10'),_0x1207('0x11')),controller[_0x1207('0x12')]);router['put'](_0x1207('0x7'),auth[_0x1207('0x6')](),interaction[_0x1207('0x13')]('mail',_0x1207('0x14')),controller[_0x1207('0x15')]);router['delete'](_0x1207('0x7'),auth['isAuthenticated'](),interaction['tracked'](_0x1207('0x10'),_0x1207('0x16')),controller[_0x1207('0x17')]);router[_0x1207('0x18')](_0x1207('0xf'),auth['isAuthenticated'](),controller[_0x1207('0x19')]);module['exports']=router;