75fcf900b0a50c0dbb98db84ef5b7a81460698ce
[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 _0x5f29=['get','isAuthenticated','update','delete','/:id','destroy','exports','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x55efb6,_0x37d174){var _0x1c5521=function(_0x340b71){while(--_0x340b71){_0x55efb6['push'](_0x55efb6['shift']());}};_0x1c5521(++_0x37d174);}(_0x5f29,0xaf));var _0x95f2=function(_0x176c4d,_0x428fe7){_0x176c4d=_0x176c4d-0x0;var _0x3ef765=_0x5f29[_0x176c4d];return _0x3ef765;};'use strict';var multer=require('multer');var util=require(_0x95f2('0x0'));var path=require('path');var timeout=require(_0x95f2('0x1'));var express=require('express');var router=express[_0x95f2('0x2')]();var fs_extra=require(_0x95f2('0x3'));var auth=require(_0x95f2('0x4'));var interaction=require(_0x95f2('0x5'));var config=require(_0x95f2('0x6'));var controller=require('./mailApplication.controller');router[_0x95f2('0x7')]('/:id',auth[_0x95f2('0x8')](),controller['show']);router['put']('/:id',auth[_0x95f2('0x8')](),controller[_0x95f2('0x9')]);router[_0x95f2('0xa')](_0x95f2('0xb'),auth['isAuthenticated'](),controller[_0x95f2('0xc')]);module[_0x95f2('0xd')]=router;