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