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 _0xb145=['exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','post','create','/:id','delete','destroy'];(function(_0x48c4da,_0x5bfb1d){var _0x532d91=function(_0x1ca862){while(--_0x1ca862){_0x48c4da['push'](_0x48c4da['shift']());}};_0x532d91(++_0x5bfb1d);}(_0xb145,0xa3));var _0x5b14=function(_0x6a858f,_0x5a138a){_0x6a858f=_0x6a858f-0x0;var _0x508892=_0xb145[_0x6a858f];return _0x508892;};'use strict';var multer=require('multer');var util=require(_0x5b14('0x0'));var path=require(_0x5b14('0x1'));var timeout=require(_0x5b14('0x2'));var express=require(_0x5b14('0x3'));var router=express[_0x5b14('0x4')]();var auth=require(_0x5b14('0x5'));var interaction=require(_0x5b14('0x6'));var config=require(_0x5b14('0x7'));var controller=require('./intZohoField.controller');router[_0x5b14('0x8')]('/',auth[_0x5b14('0x9')](),controller[_0x5b14('0xa')]);router[_0x5b14('0x8')]('/:id',auth[_0x5b14('0x9')](),controller[_0x5b14('0xb')]);router[_0x5b14('0xc')]('/',auth[_0x5b14('0x9')](),controller[_0x5b14('0xd')]);router['put'](_0x5b14('0xe'),auth[_0x5b14('0x9')](),controller['update']);router[_0x5b14('0xf')](_0x5b14('0xe'),auth[_0x5b14('0x9')](),controller[_0x5b14('0x10')]);module[_0x5b14('0x11')]=router;