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