3710f864141bdf18e3c342585340d50c7301a0d9
[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 _0x34af=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','create','put','delete','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x34af,0xd3));var _0xf34a=function(_0x2243ad,_0x4c1f9d){_0x2243ad=_0x2243ad-0x0;var _0x11826a=_0x34af[_0x2243ad];return _0x11826a;};'use strict';var multer=require(_0xf34a('0x0'));var util=require(_0xf34a('0x1'));var path=require(_0xf34a('0x2'));var timeout=require(_0xf34a('0x3'));var express=require(_0xf34a('0x4'));var router=express['Router']();var auth=require(_0xf34a('0x5'));var interaction=require(_0xf34a('0x6'));var config=require(_0xf34a('0x7'));var controller=require('./mailServerOut.controller');router[_0xf34a('0x8')]('/',auth[_0xf34a('0x9')](),controller[_0xf34a('0xa')]);router[_0xf34a('0x8')](_0xf34a('0xb'),auth[_0xf34a('0x9')](),controller[_0xf34a('0xc')]);router['post']('/',auth[_0xf34a('0x9')](),controller[_0xf34a('0xd')]);router[_0xf34a('0xe')](_0xf34a('0xb'),auth['isAuthenticated'](),controller['update']);router[_0xf34a('0xf')](_0xf34a('0xb'),auth['isAuthenticated'](),controller[_0xf34a('0x10')]);module[_0xf34a('0x11')]=router;