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 _0x34e8=['./mailMessage.controller','get','isAuthenticated','describe','/:id','show','/:id/download','download','post','tracked','mail','mailmessage:create','create','put','update','/:id/accept','accept','reject','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x262b3f,_0x3f990f){var _0x5b98af=function(_0x402932){while(--_0x402932){_0x262b3f['push'](_0x262b3f['shift']());}};_0x5b98af(++_0x3f990f);}(_0x34e8,0x12c));var _0x834e=function(_0x13b825,_0xb006df){_0x13b825=_0x13b825-0x0;var _0x541b38=_0x34e8[_0x13b825];return _0x541b38;};'use strict';var multer=require(_0x834e('0x0'));var util=require(_0x834e('0x1'));var path=require(_0x834e('0x2'));var timeout=require(_0x834e('0x3'));var express=require('express');var router=express[_0x834e('0x4')]();var auth=require(_0x834e('0x5'));var interaction=require(_0x834e('0x6'));var config=require(_0x834e('0x7'));var controller=require(_0x834e('0x8'));router[_0x834e('0x9')]('/',auth[_0x834e('0xa')](),controller['index']);router[_0x834e('0x9')]('/describe',auth[_0x834e('0xa')](),controller[_0x834e('0xb')]);router[_0x834e('0x9')](_0x834e('0xc'),auth[_0x834e('0xa')](),controller[_0x834e('0xd')]);router[_0x834e('0x9')](_0x834e('0xe'),auth[_0x834e('0xa')](),controller[_0x834e('0xf')]);router[_0x834e('0x10')]('/',auth[_0x834e('0xa')](),interaction[_0x834e('0x11')](_0x834e('0x12'),_0x834e('0x13')),controller[_0x834e('0x14')]);router[_0x834e('0x15')]('/:id',auth[_0x834e('0xa')](),controller[_0x834e('0x16')]);router['put'](_0x834e('0x17'),auth[_0x834e('0xa')](),controller[_0x834e('0x18')]);router[_0x834e('0x15')]('/:id/reject',auth[_0x834e('0xa')](),controller[_0x834e('0x19')]);router['delete'](_0x834e('0xc'),auth['isAuthenticated'](),controller[_0x834e('0x1a')]);module[_0x834e('0x1b')]=router;