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 _0xe51a=['fs-extra','../../components/auth/service','../../components/interaction/service','./intZohoAccount.controller','get','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','create','post','addConfiguration','put','update','delete','destroy','exports','util','path','connect-timeout','express','Router'];(function(_0xa55ff,_0x4fbcbe){var _0x5b18ef=function(_0x5707b1){while(--_0x5707b1){_0xa55ff['push'](_0xa55ff['shift']());}};_0x5b18ef(++_0x4fbcbe);}(_0xe51a,0x133));var _0xae51=function(_0x158910,_0x56b910){_0x158910=_0x158910-0x0;var _0x1726b4=_0xe51a[_0x158910];return _0x1726b4;};'use strict';var multer=require('multer');var util=require(_0xae51('0x0'));var path=require(_0xae51('0x1'));var timeout=require(_0xae51('0x2'));var express=require(_0xae51('0x3'));var router=express[_0xae51('0x4')]();var fs_extra=require(_0xae51('0x5'));var auth=require(_0xae51('0x6'));var interaction=require(_0xae51('0x7'));var config=require('../../config/environment');var controller=require(_0xae51('0x8'));router[_0xae51('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0xae51('0x9')](_0xae51('0xa'),auth[_0xae51('0xb')](),controller[_0xae51('0xc')]);router[_0xae51('0x9')](_0xae51('0xd'),auth[_0xae51('0xb')](),controller[_0xae51('0xe')]);router[_0xae51('0x9')](_0xae51('0xf'),auth[_0xae51('0xb')](),controller['getFields']);router['post']('/',auth['isAuthenticated'](),controller[_0xae51('0x10')]);router[_0xae51('0x11')](_0xae51('0xd'),auth['isAuthenticated'](),controller[_0xae51('0x12')]);router[_0xae51('0x13')](_0xae51('0xa'),auth[_0xae51('0xb')](),controller[_0xae51('0x14')]);router[_0xae51('0x15')]('/:id',auth['isAuthenticated'](),controller[_0xae51('0x16')]);module[_0xae51('0x17')]=router;