7d93a59dc702684d73f02e96e845376a60f75120
[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 _0x9313=['post','put','update','delete','destroy','multer','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','show'];(function(_0x1927dc,_0x235225){var _0x4882dc=function(_0x419205){while(--_0x419205){_0x1927dc['push'](_0x1927dc['shift']());}};_0x4882dc(++_0x235225);}(_0x9313,0x104));var _0x3931=function(_0x3d00e9,_0x269d0c){_0x3d00e9=_0x3d00e9-0x0;var _0x29c08c=_0x9313[_0x3d00e9];return _0x29c08c;};'use strict';var multer=require(_0x3931('0x0'));var util=require('util');var path=require(_0x3931('0x1'));var timeout=require(_0x3931('0x2'));var express=require(_0x3931('0x3'));var router=express[_0x3931('0x4')]();var auth=require(_0x3931('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x3931('0x6'));var controller=require('./mailServerOut.controller');router[_0x3931('0x7')]('/',auth[_0x3931('0x8')](),controller['index']);router[_0x3931('0x7')]('/:id',auth[_0x3931('0x8')](),controller[_0x3931('0x9')]);router[_0x3931('0xa')]('/',auth['isAuthenticated'](),controller['create']);router[_0x3931('0xb')]('/:id',auth[_0x3931('0x8')](),controller[_0x3931('0xc')]);router[_0x3931('0xd')]('/:id',auth[_0x3931('0x8')](),controller[_0x3931('0xe')]);module['exports']=router;