d437d807599e66c805e2283fb9da6b5669e12d8d
[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 _0x228d=['Router','../../config/environment','./mailServerOut.controller','isAuthenticated','index','get','/:id','show','create','put','delete','destroy','exports','multer','util','connect-timeout','express'];(function(_0x5df8a2,_0x2b0d3d){var _0x13fbdb=function(_0x4735e3){while(--_0x4735e3){_0x5df8a2['push'](_0x5df8a2['shift']());}};_0x13fbdb(++_0x2b0d3d);}(_0x228d,0x13f));var _0xd228=function(_0x48043a,_0x2b99c1){_0x48043a=_0x48043a-0x0;var _0x7d92d2=_0x228d[_0x48043a];return _0x7d92d2;};'use strict';var multer=require(_0xd228('0x0'));var util=require(_0xd228('0x1'));var path=require('path');var timeout=require(_0xd228('0x2'));var express=require(_0xd228('0x3'));var router=express[_0xd228('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xd228('0x5'));var controller=require(_0xd228('0x6'));router['get']('/',auth[_0xd228('0x7')](),controller[_0xd228('0x8')]);router[_0xd228('0x9')](_0xd228('0xa'),auth['isAuthenticated'](),controller[_0xd228('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0xd228('0xc')]);router[_0xd228('0xd')](_0xd228('0xa'),auth[_0xd228('0x7')](),controller['update']);router[_0xd228('0xe')](_0xd228('0xa'),auth[_0xd228('0x7')](),controller[_0xd228('0xf')]);module[_0xd228('0x10')]=router;