dc66b8ccdd533036cdf84fb51999fed4923555e8
[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 _0xf026=['../../components/interaction/service','../../config/environment','./intZohoConfiguration.controller','get','/:id','isAuthenticated','show','/:id/fields','getSubjects','/:id/descriptions','getDescriptions','post','create','put','update','delete','exports','multer','connect-timeout','Router','fs-extra','../../components/auth/service'];(function(_0x5b7662,_0x5d4c1c){var _0x2d3f4e=function(_0x50a393){while(--_0x50a393){_0x5b7662['push'](_0x5b7662['shift']());}};_0x2d3f4e(++_0x5d4c1c);}(_0xf026,0xc1));var _0x6f02=function(_0x6e1239,_0x3562ac){_0x6e1239=_0x6e1239-0x0;var _0x418150=_0xf026[_0x6e1239];return _0x418150;};'use strict';var multer=require(_0x6f02('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x6f02('0x1'));var express=require('express');var router=express[_0x6f02('0x2')]();var fs_extra=require(_0x6f02('0x3'));var auth=require(_0x6f02('0x4'));var interaction=require(_0x6f02('0x5'));var config=require(_0x6f02('0x6'));var controller=require(_0x6f02('0x7'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x6f02('0x8')](_0x6f02('0x9'),auth[_0x6f02('0xa')](),controller[_0x6f02('0xb')]);router['get'](_0x6f02('0xc'),auth[_0x6f02('0xa')](),controller['getFields']);router[_0x6f02('0x8')]('/:id/subjects',auth['isAuthenticated'](),controller[_0x6f02('0xd')]);router[_0x6f02('0x8')](_0x6f02('0xe'),auth[_0x6f02('0xa')](),controller[_0x6f02('0xf')]);router[_0x6f02('0x10')]('/',auth['isAuthenticated'](),controller[_0x6f02('0x11')]);router[_0x6f02('0x12')](_0x6f02('0x9'),auth[_0x6f02('0xa')](),controller[_0x6f02('0x13')]);router[_0x6f02('0x14')](_0x6f02('0x9'),auth['isAuthenticated'](),controller['destroy']);module[_0x6f02('0x15')]=router;