Built motion from commit e6806ed6.|2.6.0
[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 _0xc911=['isAuthenticated','put','delete','/:id','destroy','exports','util','path','express','Router','fs-extra','../../components/auth/service','./mailApplication.controller','get'];(function(_0x4ff09b,_0x53f67d){var _0x3f5c2e=function(_0x124592){while(--_0x124592){_0x4ff09b['push'](_0x4ff09b['shift']());}};_0x3f5c2e(++_0x53f67d);}(_0xc911,0xa0));var _0x1c91=function(_0x129cb0,_0x92481){_0x129cb0=_0x129cb0-0x0;var _0x52cf4f=_0xc911[_0x129cb0];return _0x52cf4f;};'use strict';var multer=require('multer');var util=require(_0x1c91('0x0'));var path=require(_0x1c91('0x1'));var timeout=require('connect-timeout');var express=require(_0x1c91('0x2'));var router=express[_0x1c91('0x3')]();var fs_extra=require(_0x1c91('0x4'));var auth=require(_0x1c91('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x1c91('0x6'));router[_0x1c91('0x7')]('/:id',auth[_0x1c91('0x8')](),controller['show']);router[_0x1c91('0x9')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0x1c91('0xa')](_0x1c91('0xb'),auth[_0x1c91('0x8')](),controller[_0x1c91('0xc')]);module[_0x1c91('0xd')]=router;