Built motion from commit (unavailable).|2.4.21
[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 _0x13f6=['get','isAuthenticated','show','delete','/:id','destroy','multer','util','express','Router','../../components/auth/service','../../config/environment','./mailApplication.controller'];(function(_0x3a9698,_0x1d2279){var _0x448b49=function(_0x27fb16){while(--_0x27fb16){_0x3a9698['push'](_0x3a9698['shift']());}};_0x448b49(++_0x1d2279);}(_0x13f6,0x124));var _0x613f=function(_0x42dbaf,_0x350917){_0x42dbaf=_0x42dbaf-0x0;var _0x146171=_0x13f6[_0x42dbaf];return _0x146171;};'use strict';var multer=require(_0x613f('0x0'));var util=require(_0x613f('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x613f('0x2'));var router=express[_0x613f('0x3')]();var auth=require(_0x613f('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x613f('0x5'));var controller=require(_0x613f('0x6'));router[_0x613f('0x7')]('/:id',auth[_0x613f('0x8')](),controller[_0x613f('0x9')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router[_0x613f('0xa')](_0x613f('0xb'),auth[_0x613f('0x8')](),controller[_0x613f('0xc')]);module['exports']=router;