35d029324f3ab1fbafa8b79334423b67db97f267
[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 _0x38b2=['update','destroy','multer','util','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoConfiguration.controller','get','isAuthenticated','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects','getDescriptions','put'];(function(_0x138adb,_0x193fee){var _0x1b27f2=function(_0x5e97a2){while(--_0x5e97a2){_0x138adb['push'](_0x138adb['shift']());}};_0x1b27f2(++_0x193fee);}(_0x38b2,0xc8));var _0x238b=function(_0x137606,_0x109dad){_0x137606=_0x137606-0x0;var _0x10d848=_0x38b2[_0x137606];return _0x10d848;};'use strict';var multer=require(_0x238b('0x0'));var util=require(_0x238b('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x238b('0x2'));var interaction=require(_0x238b('0x3'));var config=require(_0x238b('0x4'));var controller=require(_0x238b('0x5'));router[_0x238b('0x6')]('/',auth[_0x238b('0x7')](),controller['index']);router[_0x238b('0x6')](_0x238b('0x8'),auth[_0x238b('0x7')](),controller[_0x238b('0x9')]);router['get'](_0x238b('0xa'),auth['isAuthenticated'](),controller[_0x238b('0xb')]);router[_0x238b('0x6')](_0x238b('0xc'),auth[_0x238b('0x7')](),controller[_0x238b('0xd')]);router[_0x238b('0x6')]('/:id/descriptions',auth['isAuthenticated'](),controller[_0x238b('0xe')]);router['post']('/',auth[_0x238b('0x7')](),controller['create']);router[_0x238b('0xf')](_0x238b('0x8'),auth[_0x238b('0x7')](),controller[_0x238b('0x10')]);router['delete']('/:id',auth[_0x238b('0x7')](),controller[_0x238b('0x11')]);module['exports']=router;