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