Built motion from commit (unavailable).|2.5.11
[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 _0x0db9=['/:id/descriptions','getDescriptions','post','create','put','update','delete','destroy','exports','multer','express','Router','../../components/interaction/service','./intZohoConfiguration.controller','get','index','/:id','isAuthenticated','show','getFields','/:id/subjects','getSubjects'];(function(_0x2ecee4,_0x10a7d5){var _0x22eee7=function(_0x463203){while(--_0x463203){_0x2ecee4['push'](_0x2ecee4['shift']());}};_0x22eee7(++_0x10a7d5);}(_0x0db9,0xa3));var _0x90db=function(_0x5eb22e,_0x27cbac){_0x5eb22e=_0x5eb22e-0x0;var _0x27fed5=_0x0db9[_0x5eb22e];return _0x27fed5;};'use strict';var multer=require(_0x90db('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x90db('0x1'));var router=express[_0x90db('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0x90db('0x3'));var config=require('../../config/environment');var controller=require(_0x90db('0x4'));router[_0x90db('0x5')]('/',auth['isAuthenticated'](),controller[_0x90db('0x6')]);router[_0x90db('0x5')](_0x90db('0x7'),auth[_0x90db('0x8')](),controller[_0x90db('0x9')]);router[_0x90db('0x5')]('/:id/fields',auth[_0x90db('0x8')](),controller[_0x90db('0xa')]);router[_0x90db('0x5')](_0x90db('0xb'),auth[_0x90db('0x8')](),controller[_0x90db('0xc')]);router[_0x90db('0x5')](_0x90db('0xd'),auth[_0x90db('0x8')](),controller[_0x90db('0xe')]);router[_0x90db('0xf')]('/',auth['isAuthenticated'](),controller[_0x90db('0x10')]);router[_0x90db('0x11')](_0x90db('0x7'),auth[_0x90db('0x8')](),controller[_0x90db('0x12')]);router[_0x90db('0x13')](_0x90db('0x7'),auth[_0x90db('0x8')](),controller[_0x90db('0x14')]);module[_0x90db('0x15')]=router;