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 _0xbe16=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./intZohoField.controller','get','isAuthenticated','show','post','put','/:id','delete','destroy','multer','util'];(function(_0x8c3237,_0x4ace5b){var _0x6e32ab=function(_0x58c8de){while(--_0x58c8de){_0x8c3237['push'](_0x8c3237['shift']());}};_0x6e32ab(++_0x4ace5b);}(_0xbe16,0xb2));var _0x6be1=function(_0x19b3f9,_0xade753){_0x19b3f9=_0x19b3f9-0x0;var _0x18c3f6=_0xbe16[_0x19b3f9];return _0x18c3f6;};'use strict';var multer=require(_0x6be1('0x0'));var util=require(_0x6be1('0x1'));var path=require(_0x6be1('0x2'));var timeout=require(_0x6be1('0x3'));var express=require(_0x6be1('0x4'));var router=express[_0x6be1('0x5')]();var fs_extra=require(_0x6be1('0x6'));var auth=require(_0x6be1('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x6be1('0x8'));var controller=require(_0x6be1('0x9'));router[_0x6be1('0xa')]('/',auth[_0x6be1('0xb')](),controller['index']);router[_0x6be1('0xa')]('/:id',auth[_0x6be1('0xb')](),controller[_0x6be1('0xc')]);router[_0x6be1('0xd')]('/',auth[_0x6be1('0xb')](),controller['create']);router[_0x6be1('0xe')](_0x6be1('0xf'),auth[_0x6be1('0xb')](),controller['update']);router[_0x6be1('0x10')](_0x6be1('0xf'),auth[_0x6be1('0xb')](),controller[_0x6be1('0x11')]);module['exports']=router;