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