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