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