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 _0x4bbb=['get','/describe','describe','/:id','download','tracked','fax','faxmessage:create','put','update','accept','/:id/reject','reject','delete','multer','util','path','connect-timeout','express','../../components/auth/service','./faxMessage.controller','isAuthenticated','index'];(function(_0x2bbb70,_0x340918){var _0x370c83=function(_0x27cfdd){while(--_0x27cfdd){_0x2bbb70['push'](_0x2bbb70['shift']());}};_0x370c83(++_0x340918);}(_0x4bbb,0x167));var _0xb4bb=function(_0xb12380,_0x3817b5){_0xb12380=_0xb12380-0x0;var _0x4278df=_0x4bbb[_0xb12380];return _0x4278df;};'use strict';var multer=require(_0xb4bb('0x0'));var util=require(_0xb4bb('0x1'));var path=require(_0xb4bb('0x2'));var timeout=require(_0xb4bb('0x3'));var express=require(_0xb4bb('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xb4bb('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb4bb('0x6'));router['get']('/',auth[_0xb4bb('0x7')](),controller[_0xb4bb('0x8')]);router[_0xb4bb('0x9')](_0xb4bb('0xa'),auth[_0xb4bb('0x7')](),controller[_0xb4bb('0xb')]);router['get'](_0xb4bb('0xc'),auth[_0xb4bb('0x7')](),controller['show']);router[_0xb4bb('0x9')]('/:id/download',auth['isAuthenticated'](),controller[_0xb4bb('0xd')]);router['post']('/',auth[_0xb4bb('0x7')](),interaction[_0xb4bb('0xe')](_0xb4bb('0xf'),_0xb4bb('0x10')),controller['create']);router[_0xb4bb('0x11')](_0xb4bb('0xc'),auth[_0xb4bb('0x7')](),controller[_0xb4bb('0x12')]);router['put']('/:id/accept',auth[_0xb4bb('0x7')](),controller[_0xb4bb('0x13')]);router[_0xb4bb('0x11')](_0xb4bb('0x14'),auth['isAuthenticated'](),controller[_0xb4bb('0x15')]);router[_0xb4bb('0x16')](_0xb4bb('0xc'),auth[_0xb4bb('0x7')](),controller['destroy']);module['exports']=router;