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