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