Built motion from commit (unavailable).|2.5.2
[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 _0xcb41=['util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./mailInteraction.controller','get','isAuthenticated','index','/describe','describe','show','getMessages','download','create','post','/:id/messages','tracked','mail','mailinteraction:addtags','addTags','put','/:id','update','mailinteraction:destroy','destroy','delete','/:id/tags','removeTags','exports','multer'];(function(_0x14e442,_0x36b1bd){var _0x1385e2=function(_0x2535b5){while(--_0x2535b5){_0x14e442['push'](_0x14e442['shift']());}};_0x1385e2(++_0x36b1bd);}(_0xcb41,0x1df));var _0x1cb4=function(_0x392676,_0x3105d9){_0x392676=_0x392676-0x0;var _0x41a4e1=_0xcb41[_0x392676];return _0x41a4e1;};'use strict';var multer=require(_0x1cb4('0x0'));var util=require(_0x1cb4('0x1'));var path=require(_0x1cb4('0x2'));var timeout=require(_0x1cb4('0x3'));var express=require('express');var router=express[_0x1cb4('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x1cb4('0x5'));var config=require(_0x1cb4('0x6'));var controller=require(_0x1cb4('0x7'));router[_0x1cb4('0x8')]('/',auth[_0x1cb4('0x9')](),controller[_0x1cb4('0xa')]);router[_0x1cb4('0x8')](_0x1cb4('0xb'),auth['isAuthenticated'](),controller[_0x1cb4('0xc')]);router[_0x1cb4('0x8')]('/:id',auth[_0x1cb4('0x9')](),controller[_0x1cb4('0xd')]);router[_0x1cb4('0x8')]('/:id/messages',auth[_0x1cb4('0x9')](),controller[_0x1cb4('0xe')]);router[_0x1cb4('0x8')]('/:id/download',auth['isAuthenticated'](),controller[_0x1cb4('0xf')]);router['post']('/',auth[_0x1cb4('0x9')](),controller[_0x1cb4('0x10')]);router[_0x1cb4('0x11')](_0x1cb4('0x12'),auth[_0x1cb4('0x9')](),controller['addMessage']);router[_0x1cb4('0x11')]('/:id/tags',auth[_0x1cb4('0x9')](),interaction[_0x1cb4('0x13')](_0x1cb4('0x14'),_0x1cb4('0x15')),controller[_0x1cb4('0x16')]);router[_0x1cb4('0x17')](_0x1cb4('0x18'),auth[_0x1cb4('0x9')](),interaction[_0x1cb4('0x13')](_0x1cb4('0x14'),'mailinteraction:update'),controller[_0x1cb4('0x19')]);router['delete'](_0x1cb4('0x18'),auth[_0x1cb4('0x9')](),interaction['tracked']('mail',_0x1cb4('0x1a')),controller[_0x1cb4('0x1b')]);router[_0x1cb4('0x1c')](_0x1cb4('0x1d'),auth[_0x1cb4('0x9')](),controller[_0x1cb4('0x1e')]);module[_0x1cb4('0x1f')]=router;