5d44b600dd317d8da9310e69436140f483929764
[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 _0xeea9=['../../components/auth/service','../../config/environment','./mailApplication.controller','/:id','isAuthenticated','show','put','multer','path','connect-timeout','Router','fs-extra'];(function(_0x1abb09,_0x18ee91){var _0xea1c07=function(_0x38f42c){while(--_0x38f42c){_0x1abb09['push'](_0x1abb09['shift']());}};_0xea1c07(++_0x18ee91);}(_0xeea9,0x1ab));var _0x9eea=function(_0x4c4f7b,_0x58ce91){_0x4c4f7b=_0x4c4f7b-0x0;var _0x1b299d=_0xeea9[_0x4c4f7b];return _0x1b299d;};'use strict';var multer=require(_0x9eea('0x0'));var util=require('util');var path=require(_0x9eea('0x1'));var timeout=require(_0x9eea('0x2'));var express=require('express');var router=express[_0x9eea('0x3')]();var fs_extra=require(_0x9eea('0x4'));var auth=require(_0x9eea('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x9eea('0x6'));var controller=require(_0x9eea('0x7'));router['get'](_0x9eea('0x8'),auth[_0x9eea('0x9')](),controller[_0x9eea('0xa')]);router[_0x9eea('0xb')](_0x9eea('0x8'),auth[_0x9eea('0x9')](),controller['update']);router['delete'](_0x9eea('0x8'),auth[_0x9eea('0x9')](),controller['destroy']);module['exports']=router;