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