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 _0x75ba=['create','update','delete','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','./intFreshsalesConfiguration.controller','get','index','/:id','isAuthenticated','show','/:id/subjects','getSubjects','/:id/descriptions','/:id/fields','getFields'];(function(_0x5e709a,_0x1d7975){var _0x57401a=function(_0x27eab5){while(--_0x27eab5){_0x5e709a['push'](_0x5e709a['shift']());}};_0x57401a(++_0x1d7975);}(_0x75ba,0x1de));var _0xa75b=function(_0x4b9dc9,_0x14b3a2){_0x4b9dc9=_0x4b9dc9-0x0;var _0x57b302=_0x75ba[_0x4b9dc9];return _0x57b302;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xa75b('0x0'));var timeout=require('connect-timeout');var express=require(_0xa75b('0x1'));var router=express['Router']();var fs_extra=require(_0xa75b('0x2'));var auth=require(_0xa75b('0x3'));var interaction=require(_0xa75b('0x4'));var config=require('../../config/environment');var controller=require(_0xa75b('0x5'));router[_0xa75b('0x6')]('/',auth['isAuthenticated'](),controller[_0xa75b('0x7')]);router['get'](_0xa75b('0x8'),auth[_0xa75b('0x9')](),controller[_0xa75b('0xa')]);router['get'](_0xa75b('0xb'),auth[_0xa75b('0x9')](),controller[_0xa75b('0xc')]);router[_0xa75b('0x6')](_0xa75b('0xd'),auth[_0xa75b('0x9')](),controller['getDescriptions']);router[_0xa75b('0x6')](_0xa75b('0xe'),auth[_0xa75b('0x9')](),controller[_0xa75b('0xf')]);router['post']('/',auth[_0xa75b('0x9')](),controller[_0xa75b('0x10')]);router['put']('/:id',auth[_0xa75b('0x9')](),controller[_0xa75b('0x11')]);router[_0xa75b('0x12')](_0xa75b('0x8'),auth[_0xa75b('0x9')](),controller['destroy']);module['exports']=router;