bef9a9f0631f9d067ec9480a86ebef2bda5cc7a0
[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 _0xe45f=['../../config/environment','./mailServerOut.controller','get','index','post','create','/:id','isAuthenticated','update','delete','destroy','multer','path','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x146878,_0x1fbf48){var _0x5bd309=function(_0x9949bc){while(--_0x9949bc){_0x146878['push'](_0x146878['shift']());}};_0x5bd309(++_0x1fbf48);}(_0xe45f,0x14e));var _0xfe45=function(_0x54b725,_0xd13f75){_0x54b725=_0x54b725-0x0;var _0x44f529=_0xe45f[_0x54b725];return _0x44f529;};'use strict';var multer=require(_0xfe45('0x0'));var util=require('util');var path=require(_0xfe45('0x1'));var timeout=require('connect-timeout');var express=require(_0xfe45('0x2'));var router=express[_0xfe45('0x3')]();var auth=require(_0xfe45('0x4'));var interaction=require(_0xfe45('0x5'));var config=require(_0xfe45('0x6'));var controller=require(_0xfe45('0x7'));router[_0xfe45('0x8')]('/',auth['isAuthenticated'](),controller[_0xfe45('0x9')]);router[_0xfe45('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xfe45('0xa')]('/',auth['isAuthenticated'](),controller[_0xfe45('0xb')]);router['put'](_0xfe45('0xc'),auth[_0xfe45('0xd')](),controller[_0xfe45('0xe')]);router[_0xfe45('0xf')](_0xfe45('0xc'),auth['isAuthenticated'](),controller[_0xfe45('0x10')]);module['exports']=router;