b179d70095b2b97dee927395180d7c1e40bb1e4b
[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 _0x319e=['get','/:id','isAuthenticated','show','put','update','destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x356e8d,_0x24c719){var _0x39e65a=function(_0x27ecc2){while(--_0x27ecc2){_0x356e8d['push'](_0x356e8d['shift']());}};_0x39e65a(++_0x24c719);}(_0x319e,0x1a8));var _0xe319=function(_0x413f87,_0x12c5c0){_0x413f87=_0x413f87-0x0;var _0xb4ae8c=_0x319e[_0x413f87];return _0xb4ae8c;};'use strict';var multer=require(_0xe319('0x0'));var util=require(_0xe319('0x1'));var path=require(_0xe319('0x2'));var timeout=require('connect-timeout');var express=require(_0xe319('0x3'));var router=express[_0xe319('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xe319('0x5'));var interaction=require(_0xe319('0x6'));var config=require(_0xe319('0x7'));var controller=require('./mailApplication.controller');router[_0xe319('0x8')](_0xe319('0x9'),auth[_0xe319('0xa')](),controller[_0xe319('0xb')]);router[_0xe319('0xc')](_0xe319('0x9'),auth[_0xe319('0xa')](),controller[_0xe319('0xd')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xe319('0xe')]);module[_0xe319('0xf')]=router;