26780a7dc472884a2d0216d2a0b5e2e5b2bda474
[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 _0x39f1=['express','Router','fs-extra','../../components/auth/service','./mailApplication.controller','get','isAuthenticated','put','/:id','update','delete','destroy','exports','multer','connect-timeout'];(function(_0x10cc81,_0x172700){var _0x3bbe1e=function(_0x319ed2){while(--_0x319ed2){_0x10cc81['push'](_0x10cc81['shift']());}};_0x3bbe1e(++_0x172700);}(_0x39f1,0x193));var _0x139f=function(_0x2c22b5,_0x4e38a2){_0x2c22b5=_0x2c22b5-0x0;var _0x1728eb=_0x39f1[_0x2c22b5];return _0x1728eb;};'use strict';var multer=require(_0x139f('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x139f('0x1'));var express=require(_0x139f('0x2'));var router=express[_0x139f('0x3')]();var fs_extra=require(_0x139f('0x4'));var auth=require(_0x139f('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x139f('0x6'));router[_0x139f('0x7')]('/:id',auth[_0x139f('0x8')](),controller['show']);router[_0x139f('0x9')](_0x139f('0xa'),auth['isAuthenticated'](),controller[_0x139f('0xb')]);router[_0x139f('0xc')](_0x139f('0xa'),auth[_0x139f('0x8')](),controller[_0x139f('0xd')]);module[_0x139f('0xe')]=router;