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 _0x301b=['destroy','exports','multer','util','path','connect-timeout','Router','./mailApplication.controller','/:id','isAuthenticated','show','put','update','delete'];(function(_0x2f1607,_0x3207f6){var _0x6be822=function(_0x4d1163){while(--_0x4d1163){_0x2f1607['push'](_0x2f1607['shift']());}};_0x6be822(++_0x3207f6);}(_0x301b,0x1ec));var _0xb301=function(_0x255550,_0x241d39){_0x255550=_0x255550-0x0;var _0x1ff26f=_0x301b[_0x255550];return _0x1ff26f;};'use strict';var multer=require(_0xb301('0x0'));var util=require(_0xb301('0x1'));var path=require(_0xb301('0x2'));var timeout=require(_0xb301('0x3'));var express=require('express');var router=express[_0xb301('0x4')]();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(_0xb301('0x5'));router['get'](_0xb301('0x6'),auth[_0xb301('0x7')](),controller[_0xb301('0x8')]);router[_0xb301('0x9')](_0xb301('0x6'),auth[_0xb301('0x7')](),controller[_0xb301('0xa')]);router[_0xb301('0xb')](_0xb301('0x6'),auth['isAuthenticated'](),controller[_0xb301('0xc')]);module[_0xb301('0xd')]=router;