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