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 _0x1acf=['put','delete','destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskAccount.controller','get','isAuthenticated','index','/:id','getConfigurations','/:id/fields','post','/:id/configurations'];(function(_0x34ee91,_0x68a3ee){var _0x3f1a2c=function(_0x24e296){while(--_0x24e296){_0x34ee91['push'](_0x34ee91['shift']());}};_0x3f1a2c(++_0x68a3ee);}(_0x1acf,0x90));var _0xf1ac=function(_0xed9c3b,_0x594a76){_0xed9c3b=_0xed9c3b-0x0;var _0x8df122=_0x1acf[_0xed9c3b];return _0x8df122;};'use strict';var multer=require(_0xf1ac('0x0'));var util=require(_0xf1ac('0x1'));var path=require(_0xf1ac('0x2'));var timeout=require(_0xf1ac('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0xf1ac('0x4'));var interaction=require(_0xf1ac('0x5'));var config=require(_0xf1ac('0x6'));var controller=require(_0xf1ac('0x7'));router[_0xf1ac('0x8')]('/',auth[_0xf1ac('0x9')](),controller[_0xf1ac('0xa')]);router[_0xf1ac('0x8')](_0xf1ac('0xb'),auth[_0xf1ac('0x9')](),controller['show']);router[_0xf1ac('0x8')]('/:id/configurations',auth['isAuthenticated'](),controller[_0xf1ac('0xc')]);router[_0xf1ac('0x8')](_0xf1ac('0xd'),auth[_0xf1ac('0x9')](),controller['getFields']);router[_0xf1ac('0xe')]('/',auth[_0xf1ac('0x9')](),controller['create']);router[_0xf1ac('0xe')](_0xf1ac('0xf'),auth[_0xf1ac('0x9')](),controller['addConfiguration']);router[_0xf1ac('0x10')](_0xf1ac('0xb'),auth['isAuthenticated'](),controller['update']);router[_0xf1ac('0x11')](_0xf1ac('0xb'),auth['isAuthenticated'](),controller[_0xf1ac('0x12')]);module[_0xf1ac('0x13')]=router;