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