Built motion from commit 19a84241.|2.5.34
[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 _0x1c4e=['create','addMessage','/:id/tags','tracked','mail','mailinteraction:addtags','addTags','put','mailinteraction:update','update','delete','exports','express','Router','../../components/interaction/service','./mailInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','download','post'];(function(_0x2451d1,_0x34358b){var _0xe83863=function(_0x827e0e){while(--_0x827e0e){_0x2451d1['push'](_0x2451d1['shift']());}};_0xe83863(++_0x34358b);}(_0x1c4e,0x194));var _0xe1c4=function(_0x4ac761,_0x228735){_0x4ac761=_0x4ac761-0x0;var _0x4de38d=_0x1c4e[_0x4ac761];return _0x4de38d;};'use strict';var express=require(_0xe1c4('0x0'));var router=express[_0xe1c4('0x1')]();var auth=require('../../components/auth/service');var interaction=require(_0xe1c4('0x2'));var controller=require(_0xe1c4('0x3'));router[_0xe1c4('0x4')]('/',auth[_0xe1c4('0x5')](),controller[_0xe1c4('0x6')]);router['get'](_0xe1c4('0x7'),auth[_0xe1c4('0x5')](),controller[_0xe1c4('0x8')]);router[_0xe1c4('0x4')](_0xe1c4('0x9'),auth[_0xe1c4('0x5')](),controller[_0xe1c4('0xa')]);router[_0xe1c4('0x4')](_0xe1c4('0xb'),auth[_0xe1c4('0x5')](),controller[_0xe1c4('0xc')]);router[_0xe1c4('0x4')](_0xe1c4('0xd'),auth[_0xe1c4('0x5')](),controller[_0xe1c4('0xe')]);router[_0xe1c4('0xf')]('/',auth['isAuthenticated'](),controller[_0xe1c4('0x10')]);router['post'](_0xe1c4('0xb'),auth[_0xe1c4('0x5')](),controller[_0xe1c4('0x11')]);router['post'](_0xe1c4('0x12'),auth[_0xe1c4('0x5')](),interaction[_0xe1c4('0x13')](_0xe1c4('0x14'),_0xe1c4('0x15')),controller[_0xe1c4('0x16')]);router[_0xe1c4('0x17')](_0xe1c4('0x9'),auth[_0xe1c4('0x5')](),interaction[_0xe1c4('0x13')](_0xe1c4('0x14'),_0xe1c4('0x18')),controller[_0xe1c4('0x19')]);router[_0xe1c4('0x1a')](_0xe1c4('0x9'),auth['isAuthenticated'](),interaction['tracked'](_0xe1c4('0x14'),'mailinteraction:destroy'),controller['destroy']);router[_0xe1c4('0x1a')](_0xe1c4('0x12'),auth[_0xe1c4('0x5')](),controller['removeTags']);module[_0xe1c4('0x1b')]=router;