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