f5714ee737f812e53bf0b4f19e37376d1e04fe06
[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 _0x86f5=['connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','show','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','put','delete','/:id','destroy','exports','multer','path'];(function(_0x47fd5a,_0x33d0c4){var _0x2b2ea8=function(_0x122f66){while(--_0x122f66){_0x47fd5a['push'](_0x47fd5a['shift']());}};_0x2b2ea8(++_0x33d0c4);}(_0x86f5,0x178));var _0x586f=function(_0x491082,_0x28f78b){_0x491082=_0x491082-0x0;var _0x5797d9=_0x86f5[_0x491082];return _0x5797d9;};'use strict';var multer=require(_0x586f('0x0'));var util=require('util');var path=require(_0x586f('0x1'));var timeout=require(_0x586f('0x2'));var express=require('express');var router=express[_0x586f('0x3')]();var auth=require(_0x586f('0x4'));var interaction=require(_0x586f('0x5'));var config=require(_0x586f('0x6'));var controller=require('./intZohoConfiguration.controller');router['get']('/',auth[_0x586f('0x7')](),controller[_0x586f('0x8')]);router[_0x586f('0x9')]('/:id',auth[_0x586f('0x7')](),controller[_0x586f('0xa')]);router[_0x586f('0x9')]('/:id/fields',auth['isAuthenticated'](),controller[_0x586f('0xb')]);router[_0x586f('0x9')](_0x586f('0xc'),auth[_0x586f('0x7')](),controller[_0x586f('0xd')]);router[_0x586f('0x9')](_0x586f('0xe'),auth['isAuthenticated'](),controller[_0x586f('0xf')]);router['post']('/',auth[_0x586f('0x7')](),controller['create']);router[_0x586f('0x10')]('/:id',auth[_0x586f('0x7')](),controller['update']);router[_0x586f('0x11')](_0x586f('0x12'),auth[_0x586f('0x7')](),controller[_0x586f('0x13')]);module[_0x586f('0x14')]=router;