e79966863854f3863092b634cd4b1355617ab387
[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 _0x5f45=['path','express','../../components/interaction/service','../../config/environment','./mailApplication.controller','get','/:id','isAuthenticated','show','put','destroy','exports','multer'];(function(_0x34c215,_0x4c611f){var _0xf6c318=function(_0x4594d3){while(--_0x4594d3){_0x34c215['push'](_0x34c215['shift']());}};_0xf6c318(++_0x4c611f);}(_0x5f45,0x192));var _0x55f4=function(_0x4ae625,_0xf396d0){_0x4ae625=_0x4ae625-0x0;var _0x31accf=_0x5f45[_0x4ae625];return _0x31accf;};'use strict';var multer=require(_0x55f4('0x0'));var util=require('util');var path=require(_0x55f4('0x1'));var timeout=require('connect-timeout');var express=require(_0x55f4('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x55f4('0x3'));var config=require(_0x55f4('0x4'));var controller=require(_0x55f4('0x5'));router[_0x55f4('0x6')](_0x55f4('0x7'),auth[_0x55f4('0x8')](),controller[_0x55f4('0x9')]);router[_0x55f4('0xa')](_0x55f4('0x7'),auth[_0x55f4('0x8')](),controller['update']);router['delete'](_0x55f4('0x7'),auth[_0x55f4('0x8')](),controller[_0x55f4('0xb')]);module[_0x55f4('0xc')]=router;