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 _0x0b96=['destroy','exports','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./faxMessage.controller','isAuthenticated','index','get','/:id','download','post','reject'];(function(_0x4667b2,_0x135b67){var _0x1070f2=function(_0xa72ca5){while(--_0xa72ca5){_0x4667b2['push'](_0x4667b2['shift']());}};_0x1070f2(++_0x135b67);}(_0x0b96,0xc2));var _0x60b9=function(_0x8d8917,_0x504e20){_0x8d8917=_0x8d8917-0x0;var _0x55bd93=_0x0b96[_0x8d8917];return _0x55bd93;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x60b9('0x0'));var timeout=require(_0x60b9('0x1'));var express=require('express');var router=express[_0x60b9('0x2')]();var fs_extra=require(_0x60b9('0x3'));var auth=require(_0x60b9('0x4'));var interaction=require(_0x60b9('0x5'));var config=require('../../config/environment');var controller=require(_0x60b9('0x6'));router['get']('/',auth[_0x60b9('0x7')](),controller[_0x60b9('0x8')]);router[_0x60b9('0x9')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0x60b9('0x9')](_0x60b9('0xa'),auth[_0x60b9('0x7')](),controller['show']);router[_0x60b9('0x9')]('/:id/download',auth['isAuthenticated'](),controller[_0x60b9('0xb')]);router[_0x60b9('0xc')]('/',auth[_0x60b9('0x7')](),interaction['tracked']('fax','faxmessage:create'),controller['create']);router['put'](_0x60b9('0xa'),auth['isAuthenticated'](),controller['update']);router['put']('/:id/accept',auth[_0x60b9('0x7')](),controller['accept']);router['put']('/:id/reject',auth[_0x60b9('0x7')](),controller[_0x60b9('0xd')]);router['delete']('/:id',auth[_0x60b9('0x7')](),controller[_0x60b9('0xe')]);module[_0x60b9('0xf')]=router;