b96879aa97102ca160b842fc1175a8988365b7a6
[motion2.git] / server / api / intZohoField / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xffd6=['show','post','put','update','delete','destroy','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','./intZohoField.controller','get','isAuthenticated','index','/:id'];(function(_0x453b7d,_0x421a82){var _0x2088b9=function(_0x74db63){while(--_0x74db63){_0x453b7d['push'](_0x453b7d['shift']());}};_0x2088b9(++_0x421a82);}(_0xffd6,0x97));var _0x6ffd=function(_0x1098db,_0x39ba6b){_0x1098db=_0x1098db-0x0;var _0x14f090=_0xffd6[_0x1098db];return _0x14f090;};'use strict';var multer=require(_0x6ffd('0x0'));var util=require(_0x6ffd('0x1'));var path=require(_0x6ffd('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x6ffd('0x3')]();var auth=require(_0x6ffd('0x4'));var interaction=require(_0x6ffd('0x5'));var config=require('../../config/environment');var controller=require(_0x6ffd('0x6'));router[_0x6ffd('0x7')]('/',auth[_0x6ffd('0x8')](),controller[_0x6ffd('0x9')]);router['get'](_0x6ffd('0xa'),auth[_0x6ffd('0x8')](),controller[_0x6ffd('0xb')]);router[_0x6ffd('0xc')]('/',auth[_0x6ffd('0x8')](),controller['create']);router[_0x6ffd('0xd')](_0x6ffd('0xa'),auth['isAuthenticated'](),controller[_0x6ffd('0xe')]);router[_0x6ffd('0xf')](_0x6ffd('0xa'),auth[_0x6ffd('0x8')](),controller[_0x6ffd('0x10')]);module[_0x6ffd('0x11')]=router;