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