ee1ee297d97a1c2768076d42768e72f05c83a7a9
[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 _0x503b=['fs-extra','../../components/auth/service','../../config/environment','./mailApplication.controller','get','isAuthenticated','show','put','/:id','update','delete','exports','util','path','connect-timeout','Router'];(function(_0x33b880,_0x3ae321){var _0x487227=function(_0x2e284c){while(--_0x2e284c){_0x33b880['push'](_0x33b880['shift']());}};_0x487227(++_0x3ae321);}(_0x503b,0x10c));var _0xb503=function(_0xe558c8,_0x41fcc1){_0xe558c8=_0xe558c8-0x0;var _0x4f80ad=_0x503b[_0xe558c8];return _0x4f80ad;};'use strict';var multer=require('multer');var util=require(_0xb503('0x0'));var path=require(_0xb503('0x1'));var timeout=require(_0xb503('0x2'));var express=require('express');var router=express[_0xb503('0x3')]();var fs_extra=require(_0xb503('0x4'));var auth=require(_0xb503('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xb503('0x6'));var controller=require(_0xb503('0x7'));router[_0xb503('0x8')]('/:id',auth[_0xb503('0x9')](),controller[_0xb503('0xa')]);router[_0xb503('0xb')](_0xb503('0xc'),auth['isAuthenticated'](),controller[_0xb503('0xd')]);router[_0xb503('0xe')](_0xb503('0xc'),auth[_0xb503('0x9')](),controller['destroy']);module[_0xb503('0xf')]=router;