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