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