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