d28531181cd9d9a06c8e2c5b4f70ccf59f288201
[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 _0x5269=['get','index','/:id','isAuthenticated','show','/:id/fields','getFields','/:id/subjects','/:id/descriptions','getDescriptions','post','create','put','delete','destroy','exports','multer','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x1d3892,_0x47d5fe){var _0x574ff2=function(_0x5cc441){while(--_0x5cc441){_0x1d3892['push'](_0x1d3892['shift']());}};_0x574ff2(++_0x47d5fe);}(_0x5269,0x150));var _0x9526=function(_0x90bf81,_0x306f4b){_0x90bf81=_0x90bf81-0x0;var _0x495748=_0x5269[_0x90bf81];return _0x495748;};'use strict';var multer=require(_0x9526('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x9526('0x1')]();var auth=require(_0x9526('0x2'));var interaction=require(_0x9526('0x3'));var config=require('../../config/environment');var controller=require('./intZohoConfiguration.controller');router[_0x9526('0x4')]('/',auth['isAuthenticated'](),controller[_0x9526('0x5')]);router[_0x9526('0x4')](_0x9526('0x6'),auth[_0x9526('0x7')](),controller[_0x9526('0x8')]);router[_0x9526('0x4')](_0x9526('0x9'),auth[_0x9526('0x7')](),controller[_0x9526('0xa')]);router[_0x9526('0x4')](_0x9526('0xb'),auth[_0x9526('0x7')](),controller['getSubjects']);router[_0x9526('0x4')](_0x9526('0xc'),auth['isAuthenticated'](),controller[_0x9526('0xd')]);router[_0x9526('0xe')]('/',auth[_0x9526('0x7')](),controller[_0x9526('0xf')]);router[_0x9526('0x10')](_0x9526('0x6'),auth[_0x9526('0x7')](),controller['update']);router[_0x9526('0x11')](_0x9526('0x6'),auth['isAuthenticated'](),controller[_0x9526('0x12')]);module[_0x9526('0x13')]=router;