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 _0x0c31=['update','delete','destroy','path','connect-timeout','express','Router','fs-extra','../../config/environment','./intFreshdeskAccount.controller','isAuthenticated','get','/:id','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','put'];(function(_0x493e2c,_0x4ba39c){var _0x5ec0d8=function(_0x465107){while(--_0x465107){_0x493e2c['push'](_0x493e2c['shift']());}};_0x5ec0d8(++_0x4ba39c);}(_0x0c31,0x153));var _0x10c3=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0x0c31[_0x4565bf];return _0x5610ba;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x10c3('0x0'));var timeout=require(_0x10c3('0x1'));var express=require(_0x10c3('0x2'));var router=express[_0x10c3('0x3')]();var fs_extra=require(_0x10c3('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x10c3('0x5'));var controller=require(_0x10c3('0x6'));router['get']('/',auth[_0x10c3('0x7')](),controller['index']);router[_0x10c3('0x8')](_0x10c3('0x9'),auth['isAuthenticated'](),controller[_0x10c3('0xa')]);router['get'](_0x10c3('0xb'),auth[_0x10c3('0x7')](),controller[_0x10c3('0xc')]);router['get'](_0x10c3('0xd'),auth[_0x10c3('0x7')](),controller[_0x10c3('0xe')]);router[_0x10c3('0xf')]('/',auth[_0x10c3('0x7')](),controller[_0x10c3('0x10')]);router[_0x10c3('0xf')]('/:id/configurations',auth[_0x10c3('0x7')](),controller['addConfiguration']);router[_0x10c3('0x11')](_0x10c3('0x9'),auth['isAuthenticated'](),controller[_0x10c3('0x12')]);router[_0x10c3('0x13')](_0x10c3('0x9'),auth[_0x10c3('0x7')](),controller[_0x10c3('0x14')]);module['exports']=router;