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