1b3d3560ce2931202e23b914358ecf79c2271cb0
[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 _0xfe57=['multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailApplication.controller','get','/:id','isAuthenticated','show','put','delete','destroy'];(function(_0x18a445,_0x1c08c8){var _0x5c857a=function(_0x3a417f){while(--_0x3a417f){_0x18a445['push'](_0x18a445['shift']());}};_0x5c857a(++_0x1c08c8);}(_0xfe57,0x195));var _0x7fe5=function(_0x2307fa,_0x266e5e){_0x2307fa=_0x2307fa-0x0;var _0x496486=_0xfe57[_0x2307fa];return _0x496486;};'use strict';var multer=require(_0x7fe5('0x0'));var util=require(_0x7fe5('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x7fe5('0x2'));var router=express[_0x7fe5('0x3')]();var auth=require(_0x7fe5('0x4'));var interaction=require(_0x7fe5('0x5'));var config=require(_0x7fe5('0x6'));var controller=require(_0x7fe5('0x7'));router[_0x7fe5('0x8')](_0x7fe5('0x9'),auth[_0x7fe5('0xa')](),controller[_0x7fe5('0xb')]);router[_0x7fe5('0xc')](_0x7fe5('0x9'),auth[_0x7fe5('0xa')](),controller['update']);router[_0x7fe5('0xd')]('/:id',auth[_0x7fe5('0xa')](),controller[_0x7fe5('0xe')]);module['exports']=router;