Built motion from commit (unavailable).|2.4.20
[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 _0x2a2d=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','/:id','show','update','delete','destroy','exports','multer','util','connect-timeout'];(function(_0x48f423,_0x1b9656){var _0x26e762=function(_0x47e8f5){while(--_0x47e8f5){_0x48f423['push'](_0x48f423['shift']());}};_0x26e762(++_0x1b9656);}(_0x2a2d,0x15d));var _0xd2a2=function(_0x3f7879,_0x32cca7){_0x3f7879=_0x3f7879-0x0;var _0x2817ac=_0x2a2d[_0x3f7879];return _0x2817ac;};'use strict';var multer=require(_0xd2a2('0x0'));var util=require(_0xd2a2('0x1'));var path=require('path');var timeout=require(_0xd2a2('0x2'));var express=require(_0xd2a2('0x3'));var router=express[_0xd2a2('0x4')]();var auth=require(_0xd2a2('0x5'));var interaction=require(_0xd2a2('0x6'));var config=require(_0xd2a2('0x7'));var controller=require('./mailServerOut.controller');router['get']('/',auth[_0xd2a2('0x8')](),controller['index']);router[_0xd2a2('0x9')](_0xd2a2('0xa'),auth['isAuthenticated'](),controller[_0xd2a2('0xb')]);router['post']('/',auth[_0xd2a2('0x8')](),controller['create']);router['put']('/:id',auth['isAuthenticated'](),controller[_0xd2a2('0xc')]);router[_0xd2a2('0xd')](_0xd2a2('0xa'),auth[_0xd2a2('0x8')](),controller[_0xd2a2('0xe')]);module[_0xd2a2('0xf')]=router;