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 _0x1ad9=['delete','destroy','exports','util','path','Router','../../components/auth/service','../../components/interaction/service','./intSugarcrmConfiguration.controller','get','isAuthenticated','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','/:id','update'];(function(_0x5de87d,_0x4b331f){var _0x521ef5=function(_0x11606e){while(--_0x11606e){_0x5de87d['push'](_0x5de87d['shift']());}};_0x521ef5(++_0x4b331f);}(_0x1ad9,0x163));var _0x91ad=function(_0x3ce3c,_0x319337){_0x3ce3c=_0x3ce3c-0x0;var _0x55a2c9=_0x1ad9[_0x3ce3c];return _0x55a2c9;};'use strict';var multer=require('multer');var util=require(_0x91ad('0x0'));var path=require(_0x91ad('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x91ad('0x2')]();var auth=require(_0x91ad('0x3'));var interaction=require(_0x91ad('0x4'));var config=require('../../config/environment');var controller=require(_0x91ad('0x5'));router[_0x91ad('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0x91ad('0x6')]('/:id',auth[_0x91ad('0x7')](),controller[_0x91ad('0x8')]);router['get'](_0x91ad('0x9'),auth[_0x91ad('0x7')](),controller[_0x91ad('0xa')]);router[_0x91ad('0x6')](_0x91ad('0xb'),auth[_0x91ad('0x7')](),controller[_0x91ad('0xc')]);router['get'](_0x91ad('0xd'),auth[_0x91ad('0x7')](),controller[_0x91ad('0xe')]);router[_0x91ad('0xf')]('/',auth['isAuthenticated'](),controller[_0x91ad('0x10')]);router['put'](_0x91ad('0x11'),auth[_0x91ad('0x7')](),controller[_0x91ad('0x12')]);router[_0x91ad('0x13')]('/:id',auth[_0x91ad('0x7')](),controller[_0x91ad('0x14')]);module[_0x91ad('0x15')]=router;