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 _0xaaff=['update','accept','/:id/reject','delete','exports','multer','util','path','connect-timeout','express','../../config/environment','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/download','tracked','fax','faxmessage:create','create','put'];(function(_0x31de4e,_0x4024d8){var _0x3108d7=function(_0xe7593e){while(--_0xe7593e){_0x31de4e['push'](_0x31de4e['shift']());}};_0x3108d7(++_0x4024d8);}(_0xaaff,0x155));var _0xfaaf=function(_0x2e1777,_0x1f056a){_0x2e1777=_0x2e1777-0x0;var _0x35628f=_0xaaff[_0x2e1777];return _0x35628f;};'use strict';var multer=require(_0xfaaf('0x0'));var util=require(_0xfaaf('0x1'));var path=require(_0xfaaf('0x2'));var timeout=require(_0xfaaf('0x3'));var express=require(_0xfaaf('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xfaaf('0x5'));var controller=require('./faxMessage.controller');router['get']('/',auth[_0xfaaf('0x6')](),controller[_0xfaaf('0x7')]);router[_0xfaaf('0x8')](_0xfaaf('0x9'),auth[_0xfaaf('0x6')](),controller[_0xfaaf('0xa')]);router['get'](_0xfaaf('0xb'),auth['isAuthenticated'](),controller[_0xfaaf('0xc')]);router[_0xfaaf('0x8')](_0xfaaf('0xd'),auth[_0xfaaf('0x6')](),controller['download']);router['post']('/',auth[_0xfaaf('0x6')](),interaction[_0xfaaf('0xe')](_0xfaaf('0xf'),_0xfaaf('0x10')),controller[_0xfaaf('0x11')]);router[_0xfaaf('0x12')](_0xfaaf('0xb'),auth[_0xfaaf('0x6')](),controller[_0xfaaf('0x13')]);router[_0xfaaf('0x12')]('/:id/accept',auth[_0xfaaf('0x6')](),controller[_0xfaaf('0x14')]);router[_0xfaaf('0x12')](_0xfaaf('0x15'),auth[_0xfaaf('0x6')](),controller['reject']);router[_0xfaaf('0x16')](_0xfaaf('0xb'),auth[_0xfaaf('0x6')](),controller['destroy']);module[_0xfaaf('0x17')]=router;