4132c06159baec50b222dbe814d6007de66e16cc
[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 _0x9c2f=['./intZohoConfiguration.controller','get','isAuthenticated','index','show','getFields','getDescriptions','put','update','/:id','destroy','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x55fa5c,_0x30bd41){var _0xea802f=function(_0x4bc014){while(--_0x4bc014){_0x55fa5c['push'](_0x55fa5c['shift']());}};_0xea802f(++_0x30bd41);}(_0x9c2f,0xf5));var _0xf9c2=function(_0x35e00a,_0x4f48d4){_0x35e00a=_0x35e00a-0x0;var _0x3594d5=_0x9c2f[_0x35e00a];return _0x3594d5;};'use strict';var multer=require(_0xf9c2('0x0'));var util=require('util');var path=require(_0xf9c2('0x1'));var timeout=require(_0xf9c2('0x2'));var express=require(_0xf9c2('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xf9c2('0x4'));var interaction=require(_0xf9c2('0x5'));var config=require(_0xf9c2('0x6'));var controller=require(_0xf9c2('0x7'));router[_0xf9c2('0x8')]('/',auth[_0xf9c2('0x9')](),controller[_0xf9c2('0xa')]);router['get']('/:id',auth[_0xf9c2('0x9')](),controller[_0xf9c2('0xb')]);router[_0xf9c2('0x8')]('/:id/fields',auth['isAuthenticated'](),controller[_0xf9c2('0xc')]);router[_0xf9c2('0x8')]('/:id/subjects',auth[_0xf9c2('0x9')](),controller['getSubjects']);router['get']('/:id/descriptions',auth[_0xf9c2('0x9')](),controller[_0xf9c2('0xd')]);router['post']('/',auth[_0xf9c2('0x9')](),controller['create']);router[_0xf9c2('0xe')]('/:id',auth[_0xf9c2('0x9')](),controller[_0xf9c2('0xf')]);router['delete'](_0xf9c2('0x10'),auth[_0xf9c2('0x9')](),controller[_0xf9c2('0x11')]);module['exports']=router;