Built motion from commit 52c8a02d.|2.6.29
[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 _0x4b4d=['/:id/tags','tracked','mail','put','mailinteraction:update','update','delete','mailinteraction:destroy','destroy','removeTags','exports','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','create','addMessage','post'];(function(_0x4d9e41,_0x5713ad){var _0x1c838e=function(_0x1c2d9d){while(--_0x1c2d9d){_0x4d9e41['push'](_0x4d9e41['shift']());}};_0x1c838e(++_0x5713ad);}(_0x4b4d,0x123));var _0xd4b4=function(_0x4fc208,_0x1b54fe){_0x4fc208=_0x4fc208-0x0;var _0x437ee9=_0x4b4d[_0x4fc208];return _0x437ee9;};'use strict';var express=require(_0xd4b4('0x0'));var router=express[_0xd4b4('0x1')]();var auth=require(_0xd4b4('0x2'));var interaction=require(_0xd4b4('0x3'));var controller=require('./mailInteraction.controller');router[_0xd4b4('0x4')]('/',auth[_0xd4b4('0x5')](),controller[_0xd4b4('0x6')]);router[_0xd4b4('0x4')](_0xd4b4('0x7'),auth[_0xd4b4('0x5')](),controller[_0xd4b4('0x8')]);router['get'](_0xd4b4('0x9'),auth['isAuthenticated'](),controller[_0xd4b4('0xa')]);router[_0xd4b4('0x4')](_0xd4b4('0xb'),auth[_0xd4b4('0x5')](),controller[_0xd4b4('0xc')]);router[_0xd4b4('0x4')](_0xd4b4('0xd'),auth[_0xd4b4('0x5')](),controller['download']);router['post']('/',auth[_0xd4b4('0x5')](),controller[_0xd4b4('0xe')]);router['post']('/:id/messages',auth[_0xd4b4('0x5')](),controller[_0xd4b4('0xf')]);router[_0xd4b4('0x10')](_0xd4b4('0x11'),auth[_0xd4b4('0x5')](),interaction[_0xd4b4('0x12')](_0xd4b4('0x13'),'mailinteraction:addtags'),controller['addTags']);router[_0xd4b4('0x14')]('/:id',auth[_0xd4b4('0x5')](),interaction['tracked'](_0xd4b4('0x13'),_0xd4b4('0x15')),controller[_0xd4b4('0x16')]);router[_0xd4b4('0x17')](_0xd4b4('0x9'),auth[_0xd4b4('0x5')](),interaction[_0xd4b4('0x12')](_0xd4b4('0x13'),_0xd4b4('0x18')),controller[_0xd4b4('0x19')]);router[_0xd4b4('0x17')](_0xd4b4('0x11'),auth[_0xd4b4('0x5')](),controller[_0xd4b4('0x1a')]);module[_0xd4b4('0x1b')]=router;