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