Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / api / mailApplication / 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 _0x2078=['isAuthenticated','show','update','delete','destroy','exports','multer','util','path','express','Router','../../components/interaction/service','./mailApplication.controller','/:id'];(function(_0xcd81b8,_0x18d9fd){var _0xc3ae18=function(_0x2bd4e0){while(--_0x2bd4e0){_0xcd81b8['push'](_0xcd81b8['shift']());}};_0xc3ae18(++_0x18d9fd);}(_0x2078,0xca));var _0x8207=function(_0x24f0fe,_0x51e150){_0x24f0fe=_0x24f0fe-0x0;var _0xcb6804=_0x2078[_0x24f0fe];return _0xcb6804;};'use strict';var multer=require(_0x8207('0x0'));var util=require(_0x8207('0x1'));var path=require(_0x8207('0x2'));var timeout=require('connect-timeout');var express=require(_0x8207('0x3'));var router=express[_0x8207('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x8207('0x5'));var config=require('../../config/environment');var controller=require(_0x8207('0x6'));router['get'](_0x8207('0x7'),auth[_0x8207('0x8')](),controller[_0x8207('0x9')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x8207('0xa')]);router[_0x8207('0xb')]('/:id',auth[_0x8207('0x8')](),controller[_0x8207('0xc')]);module[_0x8207('0xd')]=router;