c6594c91b777f7e876c8a146a500c765f9323072
[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 _0x315f=['isAuthenticated','show','getFields','/:id/subjects','getSubjects','/:id/descriptions','post','put','update','delete','destroy','exports','multer','path','Router','get','index','/:id'];(function(_0x5184d1,_0x12d323){var _0x1a8857=function(_0x31b75c){while(--_0x31b75c){_0x5184d1['push'](_0x5184d1['shift']());}};_0x1a8857(++_0x12d323);}(_0x315f,0x174));var _0xf315=function(_0x5c4f6b,_0x2cdfce){_0x5c4f6b=_0x5c4f6b-0x0;var _0x104c4e=_0x315f[_0x5c4f6b];return _0x104c4e;};'use strict';var multer=require(_0xf315('0x0'));var util=require('util');var path=require(_0xf315('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xf315('0x2')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intZohoConfiguration.controller');router[_0xf315('0x3')]('/',auth['isAuthenticated'](),controller[_0xf315('0x4')]);router[_0xf315('0x3')](_0xf315('0x5'),auth[_0xf315('0x6')](),controller[_0xf315('0x7')]);router[_0xf315('0x3')]('/:id/fields',auth['isAuthenticated'](),controller[_0xf315('0x8')]);router['get'](_0xf315('0x9'),auth[_0xf315('0x6')](),controller[_0xf315('0xa')]);router[_0xf315('0x3')](_0xf315('0xb'),auth['isAuthenticated'](),controller['getDescriptions']);router[_0xf315('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0xf315('0xd')]('/:id',auth[_0xf315('0x6')](),controller[_0xf315('0xe')]);router[_0xf315('0xf')](_0xf315('0x5'),auth['isAuthenticated'](),controller[_0xf315('0x10')]);module[_0xf315('0x11')]=router;