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 _0xc7cb=['getDescriptions','/:id/fields','getFields','delete','destroy','exports','multer','express','Router','fs-extra','../../config/environment','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','/:id','/:id/subjects','/:id/descriptions'];(function(_0x43a6e0,_0x1ab68f){var _0x509255=function(_0x3b83df){while(--_0x3b83df){_0x43a6e0['push'](_0x43a6e0['shift']());}};_0x509255(++_0x1ab68f);}(_0xc7cb,0x96));var _0xbc7c=function(_0x52f4cf,_0x514533){_0x52f4cf=_0x52f4cf-0x0;var _0x2db42e=_0xc7cb[_0x52f4cf];return _0x2db42e;};'use strict';var multer=require(_0xbc7c('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xbc7c('0x1'));var router=express[_0xbc7c('0x2')]();var fs_extra=require(_0xbc7c('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xbc7c('0x4'));var controller=require(_0xbc7c('0x5'));router[_0xbc7c('0x6')]('/',auth[_0xbc7c('0x7')](),controller[_0xbc7c('0x8')]);router[_0xbc7c('0x6')](_0xbc7c('0x9'),auth[_0xbc7c('0x7')](),controller['show']);router['get'](_0xbc7c('0xa'),auth[_0xbc7c('0x7')](),controller['getSubjects']);router[_0xbc7c('0x6')](_0xbc7c('0xb'),auth[_0xbc7c('0x7')](),controller[_0xbc7c('0xc')]);router[_0xbc7c('0x6')](_0xbc7c('0xd'),auth[_0xbc7c('0x7')](),controller[_0xbc7c('0xe')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xbc7c('0x9'),auth[_0xbc7c('0x7')](),controller['update']);router[_0xbc7c('0xf')]('/:id',auth[_0xbc7c('0x7')](),controller[_0xbc7c('0x10')]);module[_0xbc7c('0x11')]=router;