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