1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x97c1=['util','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailApplication.controller','get','show','put','/:id','isAuthenticated','destroy','exports','multer'];(function(_0x2a351b,_0x2f9f7f){var _0x8e3a1=function(_0x2d05a5){while(--_0x2d05a5){_0x2a351b['push'](_0x2a351b['shift']());}};_0x8e3a1(++_0x2f9f7f);}(_0x97c1,0xdf));var _0x197c=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0x97c1[_0x4a9fb1];return _0x348672;};'use strict';var multer=require(_0x197c('0x0'));var util=require(_0x197c('0x1'));var path=require('path');var timeout=require(_0x197c('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0x197c('0x3'));var interaction=require(_0x197c('0x4'));var config=require(_0x197c('0x5'));var controller=require(_0x197c('0x6'));router[_0x197c('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x197c('0x8')]);router[_0x197c('0x9')](_0x197c('0xa'),auth[_0x197c('0xb')](),controller['update']);router['delete'](_0x197c('0xa'),auth['isAuthenticated'](),controller[_0x197c('0xc')]);module[_0x197c('0xd')]=router;