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