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