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 _0x407f=['../../components/interaction/service','../../config/environment','./intZohoConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','/:id/subjects','getDescriptions','post','create','update','delete','destroy','exports','connect-timeout','express','Router','../../components/auth/service'];(function(_0x1fcc75,_0x2eb7e7){var _0x5688c9=function(_0x365c73){while(--_0x365c73){_0x1fcc75['push'](_0x1fcc75['shift']());}};_0x5688c9(++_0x2eb7e7);}(_0x407f,0xc2));var _0xf407=function(_0x3fb638,_0x30043c){_0x3fb638=_0x3fb638-0x0;var _0x3b4215=_0x407f[_0x3fb638];return _0x3b4215;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xf407('0x0'));var express=require(_0xf407('0x1'));var router=express[_0xf407('0x2')]();var auth=require(_0xf407('0x3'));var interaction=require(_0xf407('0x4'));var config=require(_0xf407('0x5'));var controller=require(_0xf407('0x6'));router[_0xf407('0x7')]('/',auth[_0xf407('0x8')](),controller[_0xf407('0x9')]);router[_0xf407('0x7')](_0xf407('0xa'),auth[_0xf407('0x8')](),controller[_0xf407('0xb')]);router[_0xf407('0x7')](_0xf407('0xc'),auth['isAuthenticated'](),controller[_0xf407('0xd')]);router[_0xf407('0x7')](_0xf407('0xe'),auth[_0xf407('0x8')](),controller['getSubjects']);router['get']('/:id/descriptions',auth[_0xf407('0x8')](),controller[_0xf407('0xf')]);router[_0xf407('0x10')]('/',auth[_0xf407('0x8')](),controller[_0xf407('0x11')]);router['put'](_0xf407('0xa'),auth[_0xf407('0x8')](),controller[_0xf407('0x12')]);router[_0xf407('0x13')](_0xf407('0xa'),auth[_0xf407('0x8')](),controller[_0xf407('0x14')]);module[_0xf407('0x15')]=router;