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