Built motion from commit (unavailable).|2.5.4
[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 _0x3f16=['/:id','show','post','put','update','delete','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailServerOut.controller','isAuthenticated'];(function(_0x1e6426,_0x418978){var _0x572c1d=function(_0x1fed26){while(--_0x1fed26){_0x1e6426['push'](_0x1e6426['shift']());}};_0x572c1d(++_0x418978);}(_0x3f16,0x1e7));var _0x63f1=function(_0x947810,_0x421b70){_0x947810=_0x947810-0x0;var _0x57acf5=_0x3f16[_0x947810];return _0x57acf5;};'use strict';var multer=require(_0x63f1('0x0'));var util=require('util');var path=require(_0x63f1('0x1'));var timeout=require(_0x63f1('0x2'));var express=require('express');var router=express[_0x63f1('0x3')]();var auth=require(_0x63f1('0x4'));var interaction=require(_0x63f1('0x5'));var config=require(_0x63f1('0x6'));var controller=require(_0x63f1('0x7'));router['get']('/',auth[_0x63f1('0x8')](),controller['index']);router['get'](_0x63f1('0x9'),auth[_0x63f1('0x8')](),controller[_0x63f1('0xa')]);router[_0x63f1('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0x63f1('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x63f1('0xd')]);router[_0x63f1('0xe')](_0x63f1('0x9'),auth[_0x63f1('0x8')](),controller['destroy']);module[_0x63f1('0xf')]=router;