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