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