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