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 _0x1fff=['exports','multer','path','connect-timeout','Router','../../components/auth/service','../../config/environment','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/subjects','getSubjects','getDescriptions','/:id/fields','getFields','post','create','put','update','delete','destroy'];(function(_0x3f77b9,_0x34328c){var _0x28674b=function(_0x20e19d){while(--_0x20e19d){_0x3f77b9['push'](_0x3f77b9['shift']());}};_0x28674b(++_0x34328c);}(_0x1fff,0x169));var _0xf1ff=function(_0x455f17,_0x4e2d9a){_0x455f17=_0x455f17-0x0;var _0x1dd5e1=_0x1fff[_0x455f17];return _0x1dd5e1;};'use strict';var multer=require(_0xf1ff('0x0'));var util=require('util');var path=require(_0xf1ff('0x1'));var timeout=require(_0xf1ff('0x2'));var express=require('express');var router=express[_0xf1ff('0x3')]();var auth=require(_0xf1ff('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xf1ff('0x5'));var controller=require(_0xf1ff('0x6'));router[_0xf1ff('0x7')]('/',auth[_0xf1ff('0x8')](),controller[_0xf1ff('0x9')]);router['get'](_0xf1ff('0xa'),auth[_0xf1ff('0x8')](),controller[_0xf1ff('0xb')]);router[_0xf1ff('0x7')](_0xf1ff('0xc'),auth[_0xf1ff('0x8')](),controller[_0xf1ff('0xd')]);router[_0xf1ff('0x7')]('/:id/descriptions',auth['isAuthenticated'](),controller[_0xf1ff('0xe')]);router[_0xf1ff('0x7')](_0xf1ff('0xf'),auth[_0xf1ff('0x8')](),controller[_0xf1ff('0x10')]);router[_0xf1ff('0x11')]('/',auth[_0xf1ff('0x8')](),controller[_0xf1ff('0x12')]);router[_0xf1ff('0x13')](_0xf1ff('0xa'),auth[_0xf1ff('0x8')](),controller[_0xf1ff('0x14')]);router[_0xf1ff('0x15')](_0xf1ff('0xa'),auth['isAuthenticated'](),controller[_0xf1ff('0x16')]);module[_0xf1ff('0x17')]=router;