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