88773d7fa5c88d30d9691b738cf30c3d8b47f05e
[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 _0x964e=['isAuthenticated','index','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','put','update','delete','destroy','exports','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get'];(function(_0x418432,_0x537680){var _0x3023a9=function(_0x1c42d0){while(--_0x1c42d0){_0x418432['push'](_0x418432['shift']());}};_0x3023a9(++_0x537680);}(_0x964e,0xfb));var _0xe964=function(_0x2d397c,_0x26b969){_0x2d397c=_0x2d397c-0x0;var _0x2171db=_0x964e[_0x2d397c];return _0x2171db;};'use strict';var multer=require(_0xe964('0x0'));var util=require(_0xe964('0x1'));var path=require('path');var timeout=require(_0xe964('0x2'));var express=require('express');var router=express[_0xe964('0x3')]();var fs_extra=require(_0xe964('0x4'));var auth=require(_0xe964('0x5'));var interaction=require(_0xe964('0x6'));var config=require(_0xe964('0x7'));var controller=require('./intZohoConfiguration.controller');router[_0xe964('0x8')]('/',auth[_0xe964('0x9')](),controller[_0xe964('0xa')]);router[_0xe964('0x8')](_0xe964('0xb'),auth[_0xe964('0x9')](),controller[_0xe964('0xc')]);router['get'](_0xe964('0xd'),auth[_0xe964('0x9')](),controller[_0xe964('0xe')]);router['get'](_0xe964('0xf'),auth[_0xe964('0x9')](),controller[_0xe964('0x10')]);router['get'](_0xe964('0x11'),auth[_0xe964('0x9')](),controller[_0xe964('0x12')]);router[_0xe964('0x13')]('/',auth['isAuthenticated'](),controller[_0xe964('0x14')]);router[_0xe964('0x15')]('/:id',auth['isAuthenticated'](),controller[_0xe964('0x16')]);router[_0xe964('0x17')]('/:id',auth[_0xe964('0x9')](),controller[_0xe964('0x18')]);module[_0xe964('0x19')]=router;