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