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