db89cb3a5e3f8ea2c9a8ac6af3f82f8c1a2e626d
[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 _0xf550=['isAuthenticated','show','put','update','destroy','exports','multer','util','path','connect-timeout','express','Router','./mailApplication.controller','/:id'];(function(_0x2ed311,_0x47a90f){var _0x520e64=function(_0x48eaad){while(--_0x48eaad){_0x2ed311['push'](_0x2ed311['shift']());}};_0x520e64(++_0x47a90f);}(_0xf550,0x102));var _0x0f55=function(_0x4702ee,_0xaf6a45){_0x4702ee=_0x4702ee-0x0;var _0x62ca7d=_0xf550[_0x4702ee];return _0x62ca7d;};'use strict';var multer=require(_0x0f55('0x0'));var util=require(_0x0f55('0x1'));var path=require(_0x0f55('0x2'));var timeout=require(_0x0f55('0x3'));var express=require(_0x0f55('0x4'));var router=express[_0x0f55('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x0f55('0x6'));router['get'](_0x0f55('0x7'),auth[_0x0f55('0x8')](),controller[_0x0f55('0x9')]);router[_0x0f55('0xa')](_0x0f55('0x7'),auth[_0x0f55('0x8')](),controller[_0x0f55('0xb')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x0f55('0xc')]);module[_0x0f55('0xd')]=router;