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