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 _0xefda=['delete','destroy','exports','multer','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoAccount.controller','get','isAuthenticated','/:id','show','/:id/configurations','getConfigurations','getFields','post','create','addConfiguration','put'];(function(_0x5a09ca,_0x22f1e4){var _0x3d8f51=function(_0x50b190){while(--_0x50b190){_0x5a09ca['push'](_0x5a09ca['shift']());}};_0x3d8f51(++_0x22f1e4);}(_0xefda,0x96));var _0xaefd=function(_0x727e40,_0x55c539){_0x727e40=_0x727e40-0x0;var _0x734039=_0xefda[_0x727e40];return _0x734039;};'use strict';var multer=require(_0xaefd('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xaefd('0x1'));var express=require(_0xaefd('0x2'));var router=express['Router']();var auth=require(_0xaefd('0x3'));var interaction=require(_0xaefd('0x4'));var config=require(_0xaefd('0x5'));var controller=require(_0xaefd('0x6'));router[_0xaefd('0x7')]('/',auth[_0xaefd('0x8')](),controller['index']);router[_0xaefd('0x7')](_0xaefd('0x9'),auth[_0xaefd('0x8')](),controller[_0xaefd('0xa')]);router['get'](_0xaefd('0xb'),auth[_0xaefd('0x8')](),controller[_0xaefd('0xc')]);router['get']('/:id/fields',auth['isAuthenticated'](),controller[_0xaefd('0xd')]);router[_0xaefd('0xe')]('/',auth[_0xaefd('0x8')](),controller[_0xaefd('0xf')]);router[_0xaefd('0xe')](_0xaefd('0xb'),auth[_0xaefd('0x8')](),controller[_0xaefd('0x10')]);router[_0xaefd('0x11')](_0xaefd('0x9'),auth[_0xaefd('0x8')](),controller['update']);router[_0xaefd('0x12')]('/:id',auth[_0xaefd('0x8')](),controller[_0xaefd('0x13')]);module[_0xaefd('0x14')]=router;