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 _0x9cdb=['delete','destroy','multer','util','connect-timeout','express','Router','../../config/environment','./intZohoAccount.controller','isAuthenticated','index','/:id','get','getConfigurations','/:id/fields','post','create','/:id/configurations','addConfiguration','put'];(function(_0x535b1c,_0x5ab76f){var _0x262515=function(_0x4b5d8b){while(--_0x4b5d8b){_0x535b1c['push'](_0x535b1c['shift']());}};_0x262515(++_0x5ab76f);}(_0x9cdb,0x142));var _0xb9cd=function(_0x3fea00,_0x95c208){_0x3fea00=_0x3fea00-0x0;var _0x5c4dec=_0x9cdb[_0x3fea00];return _0x5c4dec;};'use strict';var multer=require(_0xb9cd('0x0'));var util=require(_0xb9cd('0x1'));var path=require('path');var timeout=require(_0xb9cd('0x2'));var express=require(_0xb9cd('0x3'));var router=express[_0xb9cd('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xb9cd('0x5'));var controller=require(_0xb9cd('0x6'));router['get']('/',auth[_0xb9cd('0x7')](),controller[_0xb9cd('0x8')]);router['get'](_0xb9cd('0x9'),auth['isAuthenticated'](),controller['show']);router[_0xb9cd('0xa')]('/:id/configurations',auth[_0xb9cd('0x7')](),controller[_0xb9cd('0xb')]);router[_0xb9cd('0xa')](_0xb9cd('0xc'),auth[_0xb9cd('0x7')](),controller['getFields']);router[_0xb9cd('0xd')]('/',auth[_0xb9cd('0x7')](),controller[_0xb9cd('0xe')]);router[_0xb9cd('0xd')](_0xb9cd('0xf'),auth['isAuthenticated'](),controller[_0xb9cd('0x10')]);router[_0xb9cd('0x11')](_0xb9cd('0x9'),auth[_0xb9cd('0x7')](),controller['update']);router[_0xb9cd('0x12')](_0xb9cd('0x9'),auth[_0xb9cd('0x7')](),controller[_0xb9cd('0x13')]);module['exports']=router;