cee84379d27a3bc8ece844e57371201ffedf854a
[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 _0xd10f=['../../components/interaction/service','get','isAuthenticated','index','/:id','show','getFields','/:id/subjects','getSubjects','getDescriptions','post','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service'];(function(_0x18ba37,_0x451ca4){var _0x4105d8=function(_0x13e7e8){while(--_0x13e7e8){_0x18ba37['push'](_0x18ba37['shift']());}};_0x4105d8(++_0x451ca4);}(_0xd10f,0x198));var _0xfd10=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xd10f[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xfd10('0x0'));var util=require(_0xfd10('0x1'));var path=require(_0xfd10('0x2'));var timeout=require(_0xfd10('0x3'));var express=require(_0xfd10('0x4'));var router=express['Router']();var auth=require(_0xfd10('0x5'));var interaction=require(_0xfd10('0x6'));var config=require('../../config/environment');var controller=require('./intZohoConfiguration.controller');router[_0xfd10('0x7')]('/',auth[_0xfd10('0x8')](),controller[_0xfd10('0x9')]);router[_0xfd10('0x7')](_0xfd10('0xa'),auth[_0xfd10('0x8')](),controller[_0xfd10('0xb')]);router[_0xfd10('0x7')]('/:id/fields',auth[_0xfd10('0x8')](),controller[_0xfd10('0xc')]);router['get'](_0xfd10('0xd'),auth[_0xfd10('0x8')](),controller[_0xfd10('0xe')]);router[_0xfd10('0x7')]('/:id/descriptions',auth['isAuthenticated'](),controller[_0xfd10('0xf')]);router[_0xfd10('0x10')]('/',auth['isAuthenticated'](),controller[_0xfd10('0x11')]);router[_0xfd10('0x12')](_0xfd10('0xa'),auth[_0xfd10('0x8')](),controller[_0xfd10('0x13')]);router[_0xfd10('0x14')](_0xfd10('0xa'),auth[_0xfd10('0x8')](),controller[_0xfd10('0x15')]);module[_0xfd10('0x16')]=router;