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 _0x026f=['express','../../components/auth/service','../../components/interaction/service','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/fields','getFields','post','put','update','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0x1ec087,_0x357bbe){var _0x598a75=function(_0x1711c2){while(--_0x1711c2){_0x1ec087['push'](_0x1ec087['shift']());}};_0x598a75(++_0x357bbe);}(_0x026f,0x141));var _0xf026=function(_0x1082fc,_0x2463be){_0x1082fc=_0x1082fc-0x0;var _0x3ba237=_0x026f[_0x1082fc];return _0x3ba237;};'use strict';var multer=require(_0xf026('0x0'));var util=require(_0xf026('0x1'));var path=require(_0xf026('0x2'));var timeout=require(_0xf026('0x3'));var express=require(_0xf026('0x4'));var router=express['Router']();var auth=require(_0xf026('0x5'));var interaction=require(_0xf026('0x6'));var config=require('../../config/environment');var controller=require(_0xf026('0x7'));router[_0xf026('0x8')]('/',auth[_0xf026('0x9')](),controller[_0xf026('0xa')]);router[_0xf026('0x8')](_0xf026('0xb'),auth[_0xf026('0x9')](),controller[_0xf026('0xc')]);router['get'](_0xf026('0xd'),auth[_0xf026('0x9')](),controller[_0xf026('0xe')]);router['get'](_0xf026('0xf'),auth['isAuthenticated'](),controller[_0xf026('0x10')]);router[_0xf026('0x8')](_0xf026('0x11'),auth['isAuthenticated'](),controller[_0xf026('0x12')]);router[_0xf026('0x13')]('/',auth[_0xf026('0x9')](),controller['create']);router[_0xf026('0x14')]('/:id',auth[_0xf026('0x9')](),controller[_0xf026('0x15')]);router[_0xf026('0x16')]('/:id',auth[_0xf026('0x9')](),controller[_0xf026('0x17')]);module[_0xf026('0x18')]=router;