Built motion from commit (unavailable).|2.5.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 _0x2f77=['index','/:id','show','create','put','delete','destroy','exports','multer','util','connect-timeout','express','../../components/interaction/service','../../config/environment','./mailServerOut.controller','get','isAuthenticated'];(function(_0x7b173,_0x539d7f){var _0x1c598c=function(_0xe1e1e0){while(--_0xe1e1e0){_0x7b173['push'](_0x7b173['shift']());}};_0x1c598c(++_0x539d7f);}(_0x2f77,0x90));var _0x72f7=function(_0x422f63,_0x40bd6d){_0x422f63=_0x422f63-0x0;var _0x5c61e1=_0x2f77[_0x422f63];return _0x5c61e1;};'use strict';var multer=require(_0x72f7('0x0'));var util=require(_0x72f7('0x1'));var path=require('path');var timeout=require(_0x72f7('0x2'));var express=require(_0x72f7('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x72f7('0x4'));var config=require(_0x72f7('0x5'));var controller=require(_0x72f7('0x6'));router[_0x72f7('0x7')]('/',auth[_0x72f7('0x8')](),controller[_0x72f7('0x9')]);router[_0x72f7('0x7')](_0x72f7('0xa'),auth[_0x72f7('0x8')](),controller[_0x72f7('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x72f7('0xc')]);router[_0x72f7('0xd')](_0x72f7('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x72f7('0xe')](_0x72f7('0xa'),auth[_0x72f7('0x8')](),controller[_0x72f7('0xf')]);module[_0x72f7('0x10')]=router;