aa07f1ba9d306ec06cef5048c3167bf69f8f7592
[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 _0x01dd=['exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./mailServerOut.controller','isAuthenticated','/:id','show','post','create','put','update','delete','destroy'];(function(_0x15f0b0,_0x180cb4){var _0x15e8f8=function(_0x684409){while(--_0x684409){_0x15f0b0['push'](_0x15f0b0['shift']());}};_0x15e8f8(++_0x180cb4);}(_0x01dd,0xa3));var _0xd01d=function(_0x3e112d,_0x2bb132){_0x3e112d=_0x3e112d-0x0;var _0x531c31=_0x01dd[_0x3e112d];return _0x531c31;};'use strict';var multer=require('multer');var util=require(_0xd01d('0x0'));var path=require(_0xd01d('0x1'));var timeout=require(_0xd01d('0x2'));var express=require(_0xd01d('0x3'));var router=express[_0xd01d('0x4')]();var auth=require(_0xd01d('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xd01d('0x6'));var controller=require(_0xd01d('0x7'));router['get']('/',auth[_0xd01d('0x8')](),controller['index']);router['get'](_0xd01d('0x9'),auth['isAuthenticated'](),controller[_0xd01d('0xa')]);router[_0xd01d('0xb')]('/',auth[_0xd01d('0x8')](),controller[_0xd01d('0xc')]);router[_0xd01d('0xd')]('/:id',auth['isAuthenticated'](),controller[_0xd01d('0xe')]);router[_0xd01d('0xf')](_0xd01d('0x9'),auth[_0xd01d('0x8')](),controller[_0xd01d('0x10')]);module[_0xd01d('0x11')]=router;