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 _0x994b=['show','/:id/fields','getFields','/:id/subjects','getDescriptions','post','create','put','delete','destroy','multer','path','connect-timeout','Router','../../components/auth/service','../../config/environment','./intZohoConfiguration.controller','isAuthenticated','get','/:id'];(function(_0x578f66,_0x52d310){var _0x54db87=function(_0x105246){while(--_0x105246){_0x578f66['push'](_0x578f66['shift']());}};_0x54db87(++_0x52d310);}(_0x994b,0x96));var _0xb994=function(_0x2621a8,_0x39473d){_0x2621a8=_0x2621a8-0x0;var _0xb40187=_0x994b[_0x2621a8];return _0xb40187;};'use strict';var multer=require(_0xb994('0x0'));var util=require('util');var path=require(_0xb994('0x1'));var timeout=require(_0xb994('0x2'));var express=require('express');var router=express[_0xb994('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xb994('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xb994('0x5'));var controller=require(_0xb994('0x6'));router['get']('/',auth[_0xb994('0x7')](),controller['index']);router[_0xb994('0x8')](_0xb994('0x9'),auth[_0xb994('0x7')](),controller[_0xb994('0xa')]);router[_0xb994('0x8')](_0xb994('0xb'),auth[_0xb994('0x7')](),controller[_0xb994('0xc')]);router[_0xb994('0x8')](_0xb994('0xd'),auth[_0xb994('0x7')](),controller['getSubjects']);router[_0xb994('0x8')]('/:id/descriptions',auth[_0xb994('0x7')](),controller[_0xb994('0xe')]);router[_0xb994('0xf')]('/',auth[_0xb994('0x7')](),controller[_0xb994('0x10')]);router[_0xb994('0x11')](_0xb994('0x9'),auth['isAuthenticated'](),controller['update']);router[_0xb994('0x12')]('/:id',auth[_0xb994('0x7')](),controller[_0xb994('0x13')]);module['exports']=router;