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 _0x8d3b=['./intSugarcrmConfiguration.controller','get','isAuthenticated','index','/:id','show','getFields','getDescriptions','post','create','put','update','destroy','util','connect-timeout','express','Router'];(function(_0x3e7900,_0x13d71f){var _0x75b0c9=function(_0x521622){while(--_0x521622){_0x3e7900['push'](_0x3e7900['shift']());}};_0x75b0c9(++_0x13d71f);}(_0x8d3b,0x10c));var _0xb8d3=function(_0x8e5f5f,_0x356352){_0x8e5f5f=_0x8e5f5f-0x0;var _0x423bed=_0x8d3b[_0x8e5f5f];return _0x423bed;};'use strict';var multer=require('multer');var util=require(_0xb8d3('0x0'));var path=require('path');var timeout=require(_0xb8d3('0x1'));var express=require(_0xb8d3('0x2'));var router=express[_0xb8d3('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb8d3('0x4'));router[_0xb8d3('0x5')]('/',auth[_0xb8d3('0x6')](),controller[_0xb8d3('0x7')]);router[_0xb8d3('0x5')](_0xb8d3('0x8'),auth['isAuthenticated'](),controller[_0xb8d3('0x9')]);router[_0xb8d3('0x5')]('/:id/fields',auth['isAuthenticated'](),controller[_0xb8d3('0xa')]);router[_0xb8d3('0x5')]('/:id/subjects',auth[_0xb8d3('0x6')](),controller['getSubjects']);router['get']('/:id/descriptions',auth[_0xb8d3('0x6')](),controller[_0xb8d3('0xb')]);router[_0xb8d3('0xc')]('/',auth[_0xb8d3('0x6')](),controller[_0xb8d3('0xd')]);router[_0xb8d3('0xe')]('/:id',auth[_0xb8d3('0x6')](),controller[_0xb8d3('0xf')]);router['delete'](_0xb8d3('0x8'),auth[_0xb8d3('0x6')](),controller[_0xb8d3('0x10')]);module['exports']=router;