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 _0x2b8d=['/:id','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','create'];(function(_0x2fd235,_0x41e51d){var _0x1a40e7=function(_0x2b341f){while(--_0x2b341f){_0x2fd235['push'](_0x2fd235['shift']());}};_0x1a40e7(++_0x41e51d);}(_0x2b8d,0x10c));var _0xd2b8=function(_0x1b8e60,_0x21b885){_0x1b8e60=_0x1b8e60-0x0;var _0x363363=_0x2b8d[_0x1b8e60];return _0x363363;};'use strict';var multer=require(_0xd2b8('0x0'));var util=require(_0xd2b8('0x1'));var path=require(_0xd2b8('0x2'));var timeout=require('connect-timeout');var express=require(_0xd2b8('0x3'));var router=express[_0xd2b8('0x4')]();var fs_extra=require(_0xd2b8('0x5'));var auth=require(_0xd2b8('0x6'));var interaction=require(_0xd2b8('0x7'));var config=require('../../config/environment');var controller=require('./intFreshdeskField.controller');router[_0xd2b8('0x8')]('/',auth[_0xd2b8('0x9')](),controller[_0xd2b8('0xa')]);router[_0xd2b8('0x8')]('/:id',auth[_0xd2b8('0x9')](),controller['show']);router['post']('/',auth[_0xd2b8('0x9')](),controller[_0xd2b8('0xb')]);router['put'](_0xd2b8('0xc'),auth[_0xd2b8('0x9')](),controller['update']);router['delete'](_0xd2b8('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0xd2b8('0xd')]=router;