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