763361908c142fb6146ffc38ad4ed1a092df37a9
[motion2.git] / server / api / mailApplication / 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 _0xd4f4=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailApplication.controller','get','put','/:id','isAuthenticated','update','delete','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x37886f,_0x1ab9de){var _0x2bd859=function(_0x492de9){while(--_0x492de9){_0x37886f['push'](_0x37886f['shift']());}};_0x2bd859(++_0x1ab9de);}(_0xd4f4,0x8b));var _0x4d4f=function(_0x512772,_0x40bdfa){_0x512772=_0x512772-0x0;var _0x2caaf3=_0xd4f4[_0x512772];return _0x2caaf3;};'use strict';var multer=require(_0x4d4f('0x0'));var util=require(_0x4d4f('0x1'));var path=require(_0x4d4f('0x2'));var timeout=require(_0x4d4f('0x3'));var express=require(_0x4d4f('0x4'));var router=express[_0x4d4f('0x5')]();var auth=require(_0x4d4f('0x6'));var interaction=require(_0x4d4f('0x7'));var config=require(_0x4d4f('0x8'));var controller=require(_0x4d4f('0x9'));router[_0x4d4f('0xa')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x4d4f('0xb')](_0x4d4f('0xc'),auth[_0x4d4f('0xd')](),controller[_0x4d4f('0xe')]);router[_0x4d4f('0xf')](_0x4d4f('0xc'),auth[_0x4d4f('0xd')](),controller[_0x4d4f('0x10')]);module[_0x4d4f('0x11')]=router;