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 _0xe1ac=['express','../../components/auth/service','get','isAuthenticated','index','/:id','show','/:id/subjects','getSubjects','/:id/descriptions','/:id/fields','post','create','put','update','destroy','multer','util','path'];(function(_0x3d42d8,_0x4cffaa){var _0x27fc41=function(_0x3a363b){while(--_0x3a363b){_0x3d42d8['push'](_0x3d42d8['shift']());}};_0x27fc41(++_0x4cffaa);}(_0xe1ac,0x1d8));var _0xce1a=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xe1ac[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0xce1a('0x0'));var util=require(_0xce1a('0x1'));var path=require(_0xce1a('0x2'));var timeout=require('connect-timeout');var express=require(_0xce1a('0x3'));var router=express['Router']();var auth=require(_0xce1a('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intFreshsalesConfiguration.controller');router[_0xce1a('0x5')]('/',auth[_0xce1a('0x6')](),controller[_0xce1a('0x7')]);router[_0xce1a('0x5')](_0xce1a('0x8'),auth[_0xce1a('0x6')](),controller[_0xce1a('0x9')]);router['get'](_0xce1a('0xa'),auth[_0xce1a('0x6')](),controller[_0xce1a('0xb')]);router[_0xce1a('0x5')](_0xce1a('0xc'),auth['isAuthenticated'](),controller['getDescriptions']);router[_0xce1a('0x5')](_0xce1a('0xd'),auth[_0xce1a('0x6')](),controller['getFields']);router[_0xce1a('0xe')]('/',auth['isAuthenticated'](),controller[_0xce1a('0xf')]);router[_0xce1a('0x10')](_0xce1a('0x8'),auth['isAuthenticated'](),controller[_0xce1a('0x11')]);router['delete'](_0xce1a('0x8'),auth[_0xce1a('0x6')](),controller[_0xce1a('0x12')]);module['exports']=router;