8480cec12f4ed95f368a023d3bec54527c96c800
[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 _0x072a=['show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','put','update','delete','/:id','destroy','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','get','index','isAuthenticated'];(function(_0x19c8b3,_0x56a6d8){var _0x4b232f=function(_0x3691c0){while(--_0x3691c0){_0x19c8b3['push'](_0x19c8b3['shift']());}};_0x4b232f(++_0x56a6d8);}(_0x072a,0x150));var _0xa072=function(_0x45f517,_0x18fcab){_0x45f517=_0x45f517-0x0;var _0x3be7df=_0x072a[_0x45f517];return _0x3be7df;};'use strict';var multer=require(_0xa072('0x0'));var util=require(_0xa072('0x1'));var path=require(_0xa072('0x2'));var timeout=require(_0xa072('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xa072('0x4'));var auth=require(_0xa072('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intZohoConfiguration.controller');router[_0xa072('0x6')]('/',auth['isAuthenticated'](),controller[_0xa072('0x7')]);router[_0xa072('0x6')]('/:id',auth[_0xa072('0x8')](),controller[_0xa072('0x9')]);router[_0xa072('0x6')](_0xa072('0xa'),auth['isAuthenticated'](),controller[_0xa072('0xb')]);router[_0xa072('0x6')](_0xa072('0xc'),auth[_0xa072('0x8')](),controller[_0xa072('0xd')]);router[_0xa072('0x6')](_0xa072('0xe'),auth[_0xa072('0x8')](),controller[_0xa072('0xf')]);router[_0xa072('0x10')]('/',auth[_0xa072('0x8')](),controller[_0xa072('0x11')]);router[_0xa072('0x12')]('/:id',auth[_0xa072('0x8')](),controller[_0xa072('0x13')]);router[_0xa072('0x14')](_0xa072('0x15'),auth[_0xa072('0x8')](),controller[_0xa072('0x16')]);module['exports']=router;