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