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