Built motion from commit (unavailable).|2.2.0
[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 _0x844f=['show','post','isAuthenticated','create','put','/:id','update','delete','exports','multer','util','connect-timeout','express','../../components/auth/service','../../config/environment','get','index'];(function(_0x10ef74,_0x313dd4){var _0x47cd33=function(_0x3d7eaf){while(--_0x3d7eaf){_0x10ef74['push'](_0x10ef74['shift']());}};_0x47cd33(++_0x313dd4);}(_0x844f,0x12a));var _0xf844=function(_0x29cc56,_0x572e53){_0x29cc56=_0x29cc56-0x0;var _0x816a75=_0x844f[_0x29cc56];return _0x816a75;};'use strict';var multer=require(_0xf844('0x0'));var util=require(_0xf844('0x1'));var path=require('path');var timeout=require(_0xf844('0x2'));var express=require(_0xf844('0x3'));var router=express['Router']();var auth=require(_0xf844('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xf844('0x5'));var controller=require('./mailServerOut.controller');router[_0xf844('0x6')]('/',auth['isAuthenticated'](),controller[_0xf844('0x7')]);router[_0xf844('0x6')]('/:id',auth['isAuthenticated'](),controller[_0xf844('0x8')]);router[_0xf844('0x9')]('/',auth[_0xf844('0xa')](),controller[_0xf844('0xb')]);router[_0xf844('0xc')](_0xf844('0xd'),auth['isAuthenticated'](),controller[_0xf844('0xe')]);router[_0xf844('0xf')](_0xf844('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0xf844('0x10')]=router;