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 _0xf372=['multer','util','path','connect-timeout','Router','../../config/environment','get','isAuthenticated','index','/:id','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/fields','getFields','create','put','update','delete','destroy','exports'];(function(_0x26d33a,_0x4aea52){var _0x2a3896=function(_0x57eed1){while(--_0x57eed1){_0x26d33a['push'](_0x26d33a['shift']());}};_0x2a3896(++_0x4aea52);}(_0xf372,0x14a));var _0x2f37=function(_0x262d65,_0x4d14fd){_0x262d65=_0x262d65-0x0;var _0x349005=_0xf372[_0x262d65];return _0x349005;};'use strict';var multer=require(_0x2f37('0x0'));var util=require(_0x2f37('0x1'));var path=require(_0x2f37('0x2'));var timeout=require(_0x2f37('0x3'));var express=require('express');var router=express[_0x2f37('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x2f37('0x5'));var controller=require('./intFreshsalesConfiguration.controller');router[_0x2f37('0x6')]('/',auth[_0x2f37('0x7')](),controller[_0x2f37('0x8')]);router[_0x2f37('0x6')](_0x2f37('0x9'),auth[_0x2f37('0x7')](),controller['show']);router[_0x2f37('0x6')](_0x2f37('0xa'),auth['isAuthenticated'](),controller[_0x2f37('0xb')]);router[_0x2f37('0x6')](_0x2f37('0xc'),auth['isAuthenticated'](),controller[_0x2f37('0xd')]);router[_0x2f37('0x6')](_0x2f37('0xe'),auth['isAuthenticated'](),controller[_0x2f37('0xf')]);router['post']('/',auth[_0x2f37('0x7')](),controller[_0x2f37('0x10')]);router[_0x2f37('0x11')]('/:id',auth[_0x2f37('0x7')](),controller[_0x2f37('0x12')]);router[_0x2f37('0x13')](_0x2f37('0x9'),auth[_0x2f37('0x7')](),controller[_0x2f37('0x14')]);module[_0x2f37('0x15')]=router;