Built motion from commit (unavailable).|2.5.13
[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 _0x2d7e=['/:id','post','put','update','delete','destroy','exports','multer','util','connect-timeout','express','../../components/auth/service','../../config/environment','get','isAuthenticated','index'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0x2d7e,0xe7));var _0xe2d7=function(_0x34843e,_0x4c4224){_0x34843e=_0x34843e-0x0;var _0x598f7f=_0x2d7e[_0x34843e];return _0x598f7f;};'use strict';var multer=require(_0xe2d7('0x0'));var util=require(_0xe2d7('0x1'));var path=require('path');var timeout=require(_0xe2d7('0x2'));var express=require(_0xe2d7('0x3'));var router=express['Router']();var auth=require(_0xe2d7('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xe2d7('0x5'));var controller=require('./mailServerOut.controller');router[_0xe2d7('0x6')]('/',auth[_0xe2d7('0x7')](),controller[_0xe2d7('0x8')]);router[_0xe2d7('0x6')](_0xe2d7('0x9'),auth[_0xe2d7('0x7')](),controller['show']);router[_0xe2d7('0xa')]('/',auth['isAuthenticated'](),controller['create']);router[_0xe2d7('0xb')](_0xe2d7('0x9'),auth['isAuthenticated'](),controller[_0xe2d7('0xc')]);router[_0xe2d7('0xd')](_0xe2d7('0x9'),auth[_0xe2d7('0x7')](),controller[_0xe2d7('0xe')]);module[_0xe2d7('0xf')]=router;