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 _0x8bc6=['show','getFields','/:id/subjects','getSubjects','getDescriptions','post','create','put','update','delete','destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id'];(function(_0x3dd3bc,_0x32950b){var _0x172373=function(_0x2b0f0d){while(--_0x2b0f0d){_0x3dd3bc['push'](_0x3dd3bc['shift']());}};_0x172373(++_0x32950b);}(_0x8bc6,0xc4));var _0x68bc=function(_0x4a8072,_0x435bab){_0x4a8072=_0x4a8072-0x0;var _0x11a4fe=_0x8bc6[_0x4a8072];return _0x11a4fe;};'use strict';var multer=require(_0x68bc('0x0'));var util=require(_0x68bc('0x1'));var path=require('path');var timeout=require(_0x68bc('0x2'));var express=require(_0x68bc('0x3'));var router=express['Router']();var fs_extra=require(_0x68bc('0x4'));var auth=require(_0x68bc('0x5'));var interaction=require(_0x68bc('0x6'));var config=require(_0x68bc('0x7'));var controller=require('./intSugarcrmConfiguration.controller');router[_0x68bc('0x8')]('/',auth[_0x68bc('0x9')](),controller['index']);router['get'](_0x68bc('0xa'),auth[_0x68bc('0x9')](),controller[_0x68bc('0xb')]);router['get']('/:id/fields',auth[_0x68bc('0x9')](),controller[_0x68bc('0xc')]);router[_0x68bc('0x8')](_0x68bc('0xd'),auth['isAuthenticated'](),controller[_0x68bc('0xe')]);router['get']('/:id/descriptions',auth[_0x68bc('0x9')](),controller[_0x68bc('0xf')]);router[_0x68bc('0x10')]('/',auth[_0x68bc('0x9')](),controller[_0x68bc('0x11')]);router[_0x68bc('0x12')](_0x68bc('0xa'),auth[_0x68bc('0x9')](),controller[_0x68bc('0x13')]);router[_0x68bc('0x14')](_0x68bc('0xa'),auth[_0x68bc('0x9')](),controller[_0x68bc('0x15')]);module[_0x68bc('0x16')]=router;