05e0fc15ec966b41143ac0ed479bc154b7294c9a
[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 _0x642f=['connect-timeout','express','../../components/auth/service','../../components/interaction/service','./mailServerOut.controller','get','isAuthenticated','index','/:id','show','create','put','update','delete','destroy','exports','multer','util','path'];(function(_0x5ebc8e,_0x3e3a7d){var _0x3d1180=function(_0x30549b){while(--_0x30549b){_0x5ebc8e['push'](_0x5ebc8e['shift']());}};_0x3d1180(++_0x3e3a7d);}(_0x642f,0xce));var _0xf642=function(_0x1c4d8c,_0x2540c3){_0x1c4d8c=_0x1c4d8c-0x0;var _0x1d2613=_0x642f[_0x1c4d8c];return _0x1d2613;};'use strict';var multer=require(_0xf642('0x0'));var util=require(_0xf642('0x1'));var path=require(_0xf642('0x2'));var timeout=require(_0xf642('0x3'));var express=require(_0xf642('0x4'));var router=express['Router']();var auth=require(_0xf642('0x5'));var interaction=require(_0xf642('0x6'));var config=require('../../config/environment');var controller=require(_0xf642('0x7'));router[_0xf642('0x8')]('/',auth[_0xf642('0x9')](),controller[_0xf642('0xa')]);router[_0xf642('0x8')](_0xf642('0xb'),auth[_0xf642('0x9')](),controller[_0xf642('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0xf642('0xd')]);router[_0xf642('0xe')](_0xf642('0xb'),auth['isAuthenticated'](),controller[_0xf642('0xf')]);router[_0xf642('0x10')](_0xf642('0xb'),auth[_0xf642('0x9')](),controller[_0xf642('0x11')]);module[_0xf642('0x12')]=router;