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