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 _0x2305=['post','create','delete','destroy','exports','multer','fs-extra','./intZohoField.controller','index','get','/:id','isAuthenticated','show'];(function(_0x43fb13,_0x30eb18){var _0x1728de=function(_0x4bbf4f){while(--_0x4bbf4f){_0x43fb13['push'](_0x43fb13['shift']());}};_0x1728de(++_0x30eb18);}(_0x2305,0x1e6));var _0x5230=function(_0x5e9a69,_0x40c0ec){_0x5e9a69=_0x5e9a69-0x0;var _0x5979c8=_0x2305[_0x5e9a69];return _0x5979c8;};'use strict';var multer=require(_0x5230('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x5230('0x1'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x5230('0x2'));router['get']('/',auth['isAuthenticated'](),controller[_0x5230('0x3')]);router[_0x5230('0x4')](_0x5230('0x5'),auth[_0x5230('0x6')](),controller[_0x5230('0x7')]);router[_0x5230('0x8')]('/',auth[_0x5230('0x6')](),controller[_0x5230('0x9')]);router['put'](_0x5230('0x5'),auth['isAuthenticated'](),controller['update']);router[_0x5230('0xa')](_0x5230('0x5'),auth[_0x5230('0x6')](),controller[_0x5230('0xb')]);module[_0x5230('0xc')]=router;