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