8a76fc03866e37c35848f5da668a5447a4537d41
[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 _0x73ef=['../../components/auth/service','../../config/environment','./intZohoConfiguration.controller','get','isAuthenticated','/:id','show','/:id/fields','/:id/subjects','getSubjects','/:id/descriptions','post','create','update','exports','multer','path','connect-timeout','express','fs-extra'];(function(_0x2b5552,_0x8a85ac){var _0x593968=function(_0x31833d){while(--_0x31833d){_0x2b5552['push'](_0x2b5552['shift']());}};_0x593968(++_0x8a85ac);}(_0x73ef,0x87));var _0xf73e=function(_0x2b714a,_0x11482f){_0x2b714a=_0x2b714a-0x0;var _0x8ffd51=_0x73ef[_0x2b714a];return _0x8ffd51;};'use strict';var multer=require(_0xf73e('0x0'));var util=require('util');var path=require(_0xf73e('0x1'));var timeout=require(_0xf73e('0x2'));var express=require(_0xf73e('0x3'));var router=express['Router']();var fs_extra=require(_0xf73e('0x4'));var auth=require(_0xf73e('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xf73e('0x6'));var controller=require(_0xf73e('0x7'));router[_0xf73e('0x8')]('/',auth[_0xf73e('0x9')](),controller['index']);router[_0xf73e('0x8')](_0xf73e('0xa'),auth[_0xf73e('0x9')](),controller[_0xf73e('0xb')]);router[_0xf73e('0x8')](_0xf73e('0xc'),auth[_0xf73e('0x9')](),controller['getFields']);router[_0xf73e('0x8')](_0xf73e('0xd'),auth[_0xf73e('0x9')](),controller[_0xf73e('0xe')]);router['get'](_0xf73e('0xf'),auth[_0xf73e('0x9')](),controller['getDescriptions']);router[_0xf73e('0x10')]('/',auth['isAuthenticated'](),controller[_0xf73e('0x11')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xf73e('0x12')]);router['delete'](_0xf73e('0xa'),auth[_0xf73e('0x9')](),controller['destroy']);module[_0xf73e('0x13')]=router;