2daceaac122d1856d7e7a8582e25b4d318290f24
[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 _0xc8fc=['update','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailApplication.controller','get','/:id','isAuthenticated'];(function(_0x51665b,_0x4b1df6){var _0x5beae8=function(_0x4609c4){while(--_0x4609c4){_0x51665b['push'](_0x51665b['shift']());}};_0x5beae8(++_0x4b1df6);}(_0xc8fc,0x1e0));var _0xcc8f=function(_0x186469,_0x3a60c0){_0x186469=_0x186469-0x0;var _0xa3a41c=_0xc8fc[_0x186469];return _0xa3a41c;};'use strict';var multer=require('multer');var util=require(_0xcc8f('0x0'));var path=require(_0xcc8f('0x1'));var timeout=require(_0xcc8f('0x2'));var express=require(_0xcc8f('0x3'));var router=express[_0xcc8f('0x4')]();var fs_extra=require(_0xcc8f('0x5'));var auth=require(_0xcc8f('0x6'));var interaction=require(_0xcc8f('0x7'));var config=require(_0xcc8f('0x8'));var controller=require(_0xcc8f('0x9'));router[_0xcc8f('0xa')](_0xcc8f('0xb'),auth['isAuthenticated'](),controller['show']);router['put']('/:id',auth[_0xcc8f('0xc')](),controller[_0xcc8f('0xd')]);router[_0xcc8f('0xe')](_0xcc8f('0xb'),auth['isAuthenticated'](),controller[_0xcc8f('0xf')]);module[_0xcc8f('0x10')]=router;