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 _0x3a59=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','create','update','destroy','multer','util','path','connect-timeout','express'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0x3a59,0xe9));var _0x93a5=function(_0x189305,_0x46c43f){_0x189305=_0x189305-0x0;var _0xea3406=_0x3a59[_0x189305];return _0xea3406;};'use strict';var multer=require(_0x93a5('0x0'));var util=require(_0x93a5('0x1'));var path=require(_0x93a5('0x2'));var timeout=require(_0x93a5('0x3'));var express=require(_0x93a5('0x4'));var router=express[_0x93a5('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x93a5('0x6'));var interaction=require(_0x93a5('0x7'));var config=require(_0x93a5('0x8'));var controller=require('./intZohoField.controller');router[_0x93a5('0x9')]('/',auth[_0x93a5('0xa')](),controller[_0x93a5('0xb')]);router[_0x93a5('0x9')](_0x93a5('0xc'),auth[_0x93a5('0xa')](),controller[_0x93a5('0xd')]);router['post']('/',auth[_0x93a5('0xa')](),controller[_0x93a5('0xe')]);router['put']('/:id',auth[_0x93a5('0xa')](),controller[_0x93a5('0xf')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x93a5('0x10')]);module['exports']=router;