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