Built motion from commit 449495f6.|2.6.27
[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 _0x720b=['/:id/download','download','create','addMessage','post','/:id/tags','put','/:id','tracked','mailinteraction:update','update','delete','mail','mailinteraction:destroy','destroy','exports','express','Router','./mailInteraction.controller','get','isAuthenticated','/describe','/:id/messages','getMessages'];(function(_0x50f057,_0xf49e85){var _0x14999d=function(_0x56f90f){while(--_0x56f90f){_0x50f057['push'](_0x50f057['shift']());}};_0x14999d(++_0xf49e85);}(_0x720b,0xb8));var _0xb720=function(_0x238fce,_0x3ed01f){_0x238fce=_0x238fce-0x0;var _0x3a9d50=_0x720b[_0x238fce];return _0x3a9d50;};'use strict';var express=require(_0xb720('0x0'));var router=express[_0xb720('0x1')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var controller=require(_0xb720('0x2'));router[_0xb720('0x3')]('/',auth[_0xb720('0x4')](),controller['index']);router[_0xb720('0x3')](_0xb720('0x5'),auth['isAuthenticated'](),controller['describe']);router['get']('/:id',auth[_0xb720('0x4')](),controller['show']);router['get'](_0xb720('0x6'),auth[_0xb720('0x4')](),controller[_0xb720('0x7')]);router[_0xb720('0x3')](_0xb720('0x8'),auth[_0xb720('0x4')](),controller[_0xb720('0x9')]);router['post']('/',auth[_0xb720('0x4')](),controller[_0xb720('0xa')]);router['post'](_0xb720('0x6'),auth['isAuthenticated'](),controller[_0xb720('0xb')]);router[_0xb720('0xc')](_0xb720('0xd'),auth[_0xb720('0x4')](),interaction['tracked']('mail','mailinteraction:addtags'),controller['addTags']);router[_0xb720('0xe')](_0xb720('0xf'),auth['isAuthenticated'](),interaction[_0xb720('0x10')]('mail',_0xb720('0x11')),controller[_0xb720('0x12')]);router[_0xb720('0x13')]('/:id',auth[_0xb720('0x4')](),interaction['tracked'](_0xb720('0x14'),_0xb720('0x15')),controller[_0xb720('0x16')]);router[_0xb720('0x13')](_0xb720('0xd'),auth[_0xb720('0x4')](),controller['removeTags']);module[_0xb720('0x17')]=router;