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