1436243cc1e619b80466b4e44e5d92e769efa6da
[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 _0xf432=['update','delete','destroy','exports','multer','util','path','Router','fs-extra','../../components/interaction/service','../../config/environment','./intZohoConfiguration.controller','get','/:id','isAuthenticated','show','/:id/fields','getFields','/:id/subjects','getSubjects','getDescriptions'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0xf432,0xeb));var _0x2f43=function(_0x4c42ff,_0x3d3d75){_0x4c42ff=_0x4c42ff-0x0;var _0x27387f=_0xf432[_0x4c42ff];return _0x27387f;};'use strict';var multer=require(_0x2f43('0x0'));var util=require(_0x2f43('0x1'));var path=require(_0x2f43('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x2f43('0x3')]();var fs_extra=require(_0x2f43('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x2f43('0x5'));var config=require(_0x2f43('0x6'));var controller=require(_0x2f43('0x7'));router[_0x2f43('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x2f43('0x8')](_0x2f43('0x9'),auth[_0x2f43('0xa')](),controller[_0x2f43('0xb')]);router[_0x2f43('0x8')](_0x2f43('0xc'),auth['isAuthenticated'](),controller[_0x2f43('0xd')]);router['get'](_0x2f43('0xe'),auth['isAuthenticated'](),controller[_0x2f43('0xf')]);router[_0x2f43('0x8')]('/:id/descriptions',auth[_0x2f43('0xa')](),controller[_0x2f43('0x10')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['put']('/:id',auth[_0x2f43('0xa')](),controller[_0x2f43('0x11')]);router[_0x2f43('0x12')]('/:id',auth[_0x2f43('0xa')](),controller[_0x2f43('0x13')]);module[_0x2f43('0x14')]=router;