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