Built motion from commit 449495f6.|2.6.27
[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 _0xb254=['put','update','delete','isAuthenticated','destroy','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailApplication.controller','get','/:id','show'];(function(_0x374785,_0x4f71b8){var _0x572c40=function(_0x1cf7b0){while(--_0x1cf7b0){_0x374785['push'](_0x374785['shift']());}};_0x572c40(++_0x4f71b8);}(_0xb254,0x1b5));var _0x4b25=function(_0x192b63,_0x24c007){_0x192b63=_0x192b63-0x0;var _0x224725=_0xb254[_0x192b63];return _0x224725;};'use strict';var multer=require(_0x4b25('0x0'));var util=require(_0x4b25('0x1'));var path=require(_0x4b25('0x2'));var timeout=require('connect-timeout');var express=require(_0x4b25('0x3'));var router=express[_0x4b25('0x4')]();var fs_extra=require(_0x4b25('0x5'));var auth=require(_0x4b25('0x6'));var interaction=require(_0x4b25('0x7'));var config=require(_0x4b25('0x8'));var controller=require(_0x4b25('0x9'));router[_0x4b25('0xa')](_0x4b25('0xb'),auth['isAuthenticated'](),controller[_0x4b25('0xc')]);router[_0x4b25('0xd')]('/:id',auth['isAuthenticated'](),controller[_0x4b25('0xe')]);router[_0x4b25('0xf')]('/:id',auth[_0x4b25('0x10')](),controller[_0x4b25('0x11')]);module['exports']=router;