Built motion from commit 5ae82ce5.|2.6.7
[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 _0x05bf=['/:id','/:id/messages','/:id/download','download','post','addMessage','/:id/tags','tracked','mailinteraction:addtags','mailinteraction:update','update','delete','mail','mailinteraction:destroy','removeTags','exports','express','Router','../../components/auth/service','../../components/interaction/service','./mailInteraction.controller','isAuthenticated','index','get','/describe','describe'];(function(_0x1275e,_0x2191d4){var _0x5f345f=function(_0x3245b1){while(--_0x3245b1){_0x1275e['push'](_0x1275e['shift']());}};_0x5f345f(++_0x2191d4);}(_0x05bf,0xe0));var _0xf05b=function(_0x580127,_0x370644){_0x580127=_0x580127-0x0;var _0x1384d2=_0x05bf[_0x580127];return _0x1384d2;};'use strict';var express=require(_0xf05b('0x0'));var router=express[_0xf05b('0x1')]();var auth=require(_0xf05b('0x2'));var interaction=require(_0xf05b('0x3'));var controller=require(_0xf05b('0x4'));router['get']('/',auth[_0xf05b('0x5')](),controller[_0xf05b('0x6')]);router[_0xf05b('0x7')](_0xf05b('0x8'),auth['isAuthenticated'](),controller[_0xf05b('0x9')]);router[_0xf05b('0x7')](_0xf05b('0xa'),auth[_0xf05b('0x5')](),controller['show']);router['get'](_0xf05b('0xb'),auth[_0xf05b('0x5')](),controller['getMessages']);router['get'](_0xf05b('0xc'),auth['isAuthenticated'](),controller[_0xf05b('0xd')]);router[_0xf05b('0xe')]('/',auth[_0xf05b('0x5')](),controller['create']);router['post'](_0xf05b('0xb'),auth[_0xf05b('0x5')](),controller[_0xf05b('0xf')]);router[_0xf05b('0xe')](_0xf05b('0x10'),auth[_0xf05b('0x5')](),interaction[_0xf05b('0x11')]('mail',_0xf05b('0x12')),controller['addTags']);router['put'](_0xf05b('0xa'),auth[_0xf05b('0x5')](),interaction[_0xf05b('0x11')]('mail',_0xf05b('0x13')),controller[_0xf05b('0x14')]);router[_0xf05b('0x15')]('/:id',auth['isAuthenticated'](),interaction[_0xf05b('0x11')](_0xf05b('0x16'),_0xf05b('0x17')),controller['destroy']);router[_0xf05b('0x15')](_0xf05b('0x10'),auth[_0xf05b('0x5')](),controller[_0xf05b('0x18')]);module[_0xf05b('0x19')]=router;