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 _0xc74f=['delete','destroy','multer','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','create','put','/:id','update'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xc74f,0xb6));var _0xfc74=function(_0x6c7687,_0xa2355e){_0x6c7687=_0x6c7687-0x0;var _0x22edc0=_0xc74f[_0x6c7687];return _0x22edc0;};'use strict';var multer=require(_0xfc74('0x0'));var util=require('util');var path=require(_0xfc74('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xfc74('0x2')]();var fs_extra=require(_0xfc74('0x3'));var auth=require(_0xfc74('0x4'));var interaction=require(_0xfc74('0x5'));var config=require('../../config/environment');var controller=require('./intFreshdeskField.controller');router[_0xfc74('0x6')]('/',auth[_0xfc74('0x7')](),controller[_0xfc74('0x8')]);router[_0xfc74('0x6')]('/:id',auth[_0xfc74('0x7')](),controller['show']);router['post']('/',auth[_0xfc74('0x7')](),controller[_0xfc74('0x9')]);router[_0xfc74('0xa')](_0xfc74('0xb'),auth[_0xfc74('0x7')](),controller[_0xfc74('0xc')]);router[_0xfc74('0xd')](_0xfc74('0xb'),auth['isAuthenticated'](),controller[_0xfc74('0xe')]);module['exports']=router;