Built motion from commit (unavailable).|2.5.22
[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 _0x6e83=['express','Router','../../components/auth/service','./mailServerOut.controller','get','index','isAuthenticated','show','post','create','put','/:id','update','delete','exports','util','path'];(function(_0x2251f3,_0x30e7c3){var _0x2642de=function(_0x297734){while(--_0x297734){_0x2251f3['push'](_0x2251f3['shift']());}};_0x2642de(++_0x30e7c3);}(_0x6e83,0x141));var _0x36e8=function(_0x13aa1d,_0x5bedda){_0x13aa1d=_0x13aa1d-0x0;var _0x1b5192=_0x6e83[_0x13aa1d];return _0x1b5192;};'use strict';var multer=require('multer');var util=require(_0x36e8('0x0'));var path=require(_0x36e8('0x1'));var timeout=require('connect-timeout');var express=require(_0x36e8('0x2'));var router=express[_0x36e8('0x3')]();var auth=require(_0x36e8('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x36e8('0x5'));router[_0x36e8('0x6')]('/',auth['isAuthenticated'](),controller[_0x36e8('0x7')]);router[_0x36e8('0x6')]('/:id',auth[_0x36e8('0x8')](),controller[_0x36e8('0x9')]);router[_0x36e8('0xa')]('/',auth['isAuthenticated'](),controller[_0x36e8('0xb')]);router[_0x36e8('0xc')](_0x36e8('0xd'),auth[_0x36e8('0x8')](),controller[_0x36e8('0xe')]);router[_0x36e8('0xf')](_0x36e8('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0x36e8('0x10')]=router;