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