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 _0xb03e=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoField.controller','get','isAuthenticated','index','/:id','show','post','create','update','destroy','exports','util','path','connect-timeout'];(function(_0x3bfb65,_0x1e094a){var _0x539247=function(_0x50ce68){while(--_0x50ce68){_0x3bfb65['push'](_0x3bfb65['shift']());}};_0x539247(++_0x1e094a);}(_0xb03e,0x1eb));var _0xeb03=function(_0x5c0042,_0x40a76a){_0x5c0042=_0x5c0042-0x0;var _0x2aa93d=_0xb03e[_0x5c0042];return _0x2aa93d;};'use strict';var multer=require('multer');var util=require(_0xeb03('0x0'));var path=require(_0xeb03('0x1'));var timeout=require(_0xeb03('0x2'));var express=require(_0xeb03('0x3'));var router=express[_0xeb03('0x4')]();var auth=require(_0xeb03('0x5'));var interaction=require(_0xeb03('0x6'));var config=require(_0xeb03('0x7'));var controller=require(_0xeb03('0x8'));router[_0xeb03('0x9')]('/',auth[_0xeb03('0xa')](),controller[_0xeb03('0xb')]);router['get'](_0xeb03('0xc'),auth[_0xeb03('0xa')](),controller[_0xeb03('0xd')]);router[_0xeb03('0xe')]('/',auth[_0xeb03('0xa')](),controller[_0xeb03('0xf')]);router['put'](_0xeb03('0xc'),auth[_0xeb03('0xa')](),controller[_0xeb03('0x10')]);router['delete'](_0xeb03('0xc'),auth['isAuthenticated'](),controller[_0xeb03('0x11')]);module[_0xeb03('0x12')]=router;