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 _0xa536=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','put','exports','multer','util','path','connect-timeout','fs-extra'];(function(_0x49ccaa,_0x5944f2){var _0x2c1ae1=function(_0x3e02b8){while(--_0x3e02b8){_0x49ccaa['push'](_0x49ccaa['shift']());}};_0x2c1ae1(++_0x5944f2);}(_0xa536,0x191));var _0x6a53=function(_0x587d28,_0x462654){_0x587d28=_0x587d28-0x0;var _0x572b48=_0xa536[_0x587d28];return _0x572b48;};'use strict';var multer=require(_0x6a53('0x0'));var util=require(_0x6a53('0x1'));var path=require(_0x6a53('0x2'));var timeout=require(_0x6a53('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x6a53('0x4'));var auth=require(_0x6a53('0x5'));var interaction=require(_0x6a53('0x6'));var config=require(_0x6a53('0x7'));var controller=require('./intZohoField.controller');router[_0x6a53('0x8')]('/',auth[_0x6a53('0x9')](),controller[_0x6a53('0xa')]);router[_0x6a53('0x8')](_0x6a53('0xb'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x6a53('0x9')](),controller['create']);router[_0x6a53('0xc')]('/:id',auth[_0x6a53('0x9')](),controller['update']);router['delete'](_0x6a53('0xb'),auth[_0x6a53('0x9')](),controller['destroy']);module[_0x6a53('0xd')]=router;