19897362b124041a7b9b65fcf49b1d19a076b809
[motion2.git] / server / api / mailServerOut / 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 _0x2096=['show','put','update','delete','destroy','exports','multer','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailServerOut.controller','get','isAuthenticated','/:id'];(function(_0x38ced4,_0x24263f){var _0x547c07=function(_0x279fc4){while(--_0x279fc4){_0x38ced4['push'](_0x38ced4['shift']());}};_0x547c07(++_0x24263f);}(_0x2096,0x166));var _0x6209=function(_0x88cd7b,_0x4c884c){_0x88cd7b=_0x88cd7b-0x0;var _0x56fcc8=_0x2096[_0x88cd7b];return _0x56fcc8;};'use strict';var multer=require(_0x6209('0x0'));var util=require('util');var path=require(_0x6209('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x6209('0x2')]();var auth=require(_0x6209('0x3'));var interaction=require(_0x6209('0x4'));var config=require(_0x6209('0x5'));var controller=require(_0x6209('0x6'));router[_0x6209('0x7')]('/',auth[_0x6209('0x8')](),controller['index']);router[_0x6209('0x7')](_0x6209('0x9'),auth[_0x6209('0x8')](),controller[_0x6209('0xa')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x6209('0xb')](_0x6209('0x9'),auth['isAuthenticated'](),controller[_0x6209('0xc')]);router[_0x6209('0xd')](_0x6209('0x9'),auth[_0x6209('0x8')](),controller[_0x6209('0xe')]);module[_0x6209('0xf')]=router;