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