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 _0x29f7=['get','isAuthenticated','index','/describe','describe','/:id','/:id/download','create','post','/:id/messages','/:id/tags','tracked','fax','faxinteraction:addtags','addTags','put','faxinteraction:update','update','delete','faxinteraction:destroy','destroy','exports','multer','util','path','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxInteraction.controller'];(function(_0x49e09c,_0x1ab403){var _0x56fb27=function(_0x452437){while(--_0x452437){_0x49e09c['push'](_0x49e09c['shift']());}};_0x56fb27(++_0x1ab403);}(_0x29f7,0xca));var _0x729f=function(_0x100f9d,_0x3944f1){_0x100f9d=_0x100f9d-0x0;var _0xe7ce7e=_0x29f7[_0x100f9d];return _0xe7ce7e;};'use strict';var multer=require(_0x729f('0x0'));var util=require(_0x729f('0x1'));var path=require(_0x729f('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x729f('0x3'));var auth=require(_0x729f('0x4'));var interaction=require(_0x729f('0x5'));var config=require(_0x729f('0x6'));var controller=require(_0x729f('0x7'));router[_0x729f('0x8')]('/',auth[_0x729f('0x9')](),controller[_0x729f('0xa')]);router[_0x729f('0x8')](_0x729f('0xb'),auth[_0x729f('0x9')](),controller[_0x729f('0xc')]);router[_0x729f('0x8')](_0x729f('0xd'),auth['isAuthenticated'](),controller['show']);router[_0x729f('0x8')]('/:id/messages',auth['isAuthenticated'](),controller['getMessages']);router[_0x729f('0x8')](_0x729f('0xe'),auth[_0x729f('0x9')](),controller['download']);router['post']('/',auth[_0x729f('0x9')](),controller[_0x729f('0xf')]);router[_0x729f('0x10')](_0x729f('0x11'),auth[_0x729f('0x9')](),controller['addMessage']);router[_0x729f('0x10')](_0x729f('0x12'),auth[_0x729f('0x9')](),interaction[_0x729f('0x13')](_0x729f('0x14'),_0x729f('0x15')),controller[_0x729f('0x16')]);router[_0x729f('0x17')](_0x729f('0xd'),auth[_0x729f('0x9')](),interaction[_0x729f('0x13')](_0x729f('0x14'),_0x729f('0x18')),controller[_0x729f('0x19')]);router[_0x729f('0x1a')]('/:id',auth[_0x729f('0x9')](),interaction[_0x729f('0x13')]('fax',_0x729f('0x1b')),controller[_0x729f('0x1c')]);router[_0x729f('0x1a')]('/:id/tags',auth[_0x729f('0x9')](),controller['removeTags']);module[_0x729f('0x1d')]=router;