d4b0d901952faf8dc99956a0f80531f5a7fa46c6
[motion2.git] / server / api / intZohoConfiguration / 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 _0x91a7=['update','delete','destroy','util','path','connect-timeout','Router','../../components/interaction/service','get','isAuthenticated','show','/:id/fields','getFields','/:id/subjects','getSubjects','getDescriptions','post','create','put'];(function(_0x324e14,_0x1d648b){var _0x1528cb=function(_0x4820c2){while(--_0x4820c2){_0x324e14['push'](_0x324e14['shift']());}};_0x1528cb(++_0x1d648b);}(_0x91a7,0xe7));var _0x791a=function(_0x1ca385,_0x168653){_0x1ca385=_0x1ca385-0x0;var _0x1ea84e=_0x91a7[_0x1ca385];return _0x1ea84e;};'use strict';var multer=require('multer');var util=require(_0x791a('0x0'));var path=require(_0x791a('0x1'));var timeout=require(_0x791a('0x2'));var express=require('express');var router=express[_0x791a('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x791a('0x4'));var config=require('../../config/environment');var controller=require('./intZohoConfiguration.controller');router[_0x791a('0x5')]('/',auth[_0x791a('0x6')](),controller['index']);router[_0x791a('0x5')]('/:id',auth[_0x791a('0x6')](),controller[_0x791a('0x7')]);router['get'](_0x791a('0x8'),auth[_0x791a('0x6')](),controller[_0x791a('0x9')]);router[_0x791a('0x5')](_0x791a('0xa'),auth['isAuthenticated'](),controller[_0x791a('0xb')]);router[_0x791a('0x5')]('/:id/descriptions',auth[_0x791a('0x6')](),controller[_0x791a('0xc')]);router[_0x791a('0xd')]('/',auth[_0x791a('0x6')](),controller[_0x791a('0xe')]);router[_0x791a('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x791a('0x10')]);router[_0x791a('0x11')]('/:id',auth[_0x791a('0x6')](),controller[_0x791a('0x12')]);module['exports']=router;