17af00c587672f06519212834c40727a71799887
[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 _0xe5fb=['multer','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','update','delete','/:id','destroy','exports'];(function(_0x5d67a2,_0x44a58d){var _0x10cf4b=function(_0x1f314c){while(--_0x1f314c){_0x5d67a2['push'](_0x5d67a2['shift']());}};_0x10cf4b(++_0x44a58d);}(_0xe5fb,0x1ce));var _0xbe5f=function(_0x219d87,_0x1cb6f7){_0x219d87=_0x219d87-0x0;var _0x22823d=_0xe5fb[_0x219d87];return _0x22823d;};'use strict';var multer=require(_0xbe5f('0x0'));var util=require('util');var path=require(_0xbe5f('0x1'));var timeout=require('connect-timeout');var express=require(_0xbe5f('0x2'));var router=express['Router']();var fs_extra=require(_0xbe5f('0x3'));var auth=require(_0xbe5f('0x4'));var interaction=require(_0xbe5f('0x5'));var config=require(_0xbe5f('0x6'));var controller=require('./mailApplication.controller');router[_0xbe5f('0x7')]('/:id',auth[_0xbe5f('0x8')](),controller['show']);router['put']('/:id',auth['isAuthenticated'](),controller[_0xbe5f('0x9')]);router[_0xbe5f('0xa')](_0xbe5f('0xb'),auth['isAuthenticated'](),controller[_0xbe5f('0xc')]);module[_0xbe5f('0xd')]=router;