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 _0x04b0=['destroy','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./mailApplication.controller','get','/:id','isAuthenticated','show','put','update','delete'];(function(_0x8e992d,_0x5dd91c){var _0x41dd7f=function(_0x130202){while(--_0x130202){_0x8e992d['push'](_0x8e992d['shift']());}};_0x41dd7f(++_0x5dd91c);}(_0x04b0,0x111));var _0x004b=function(_0xcae63b,_0x474a54){_0xcae63b=_0xcae63b-0x0;var _0x501e61=_0x04b0[_0xcae63b];return _0x501e61;};'use strict';var multer=require('multer');var util=require(_0x004b('0x0'));var path=require(_0x004b('0x1'));var timeout=require(_0x004b('0x2'));var express=require(_0x004b('0x3'));var router=express['Router']();var fs_extra=require(_0x004b('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x004b('0x5'));var config=require(_0x004b('0x6'));var controller=require(_0x004b('0x7'));router[_0x004b('0x8')](_0x004b('0x9'),auth[_0x004b('0xa')](),controller[_0x004b('0xb')]);router[_0x004b('0xc')]('/:id',auth[_0x004b('0xa')](),controller[_0x004b('0xd')]);router[_0x004b('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x004b('0xf')]);module['exports']=router;