3bb639c97013782706d7008819c1b22f2a151c93
[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 _0x1f3f=['put','update','delete','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoConfiguration.controller','index','get','/:id','isAuthenticated','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','create'];(function(_0x5bf593,_0x4b8f39){var _0x4bef25=function(_0x95769){while(--_0x95769){_0x5bf593['push'](_0x5bf593['shift']());}};_0x4bef25(++_0x4b8f39);}(_0x1f3f,0x145));var _0xf1f3=function(_0x5a6e32,_0x573b46){_0x5a6e32=_0x5a6e32-0x0;var _0x168e07=_0x1f3f[_0x5a6e32];return _0x168e07;};'use strict';var multer=require(_0xf1f3('0x0'));var util=require(_0xf1f3('0x1'));var path=require(_0xf1f3('0x2'));var timeout=require(_0xf1f3('0x3'));var express=require('express');var router=express[_0xf1f3('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xf1f3('0x5'));var interaction=require(_0xf1f3('0x6'));var config=require(_0xf1f3('0x7'));var controller=require(_0xf1f3('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0xf1f3('0x9')]);router[_0xf1f3('0xa')](_0xf1f3('0xb'),auth[_0xf1f3('0xc')](),controller['show']);router[_0xf1f3('0xa')](_0xf1f3('0xd'),auth['isAuthenticated'](),controller[_0xf1f3('0xe')]);router[_0xf1f3('0xa')](_0xf1f3('0xf'),auth[_0xf1f3('0xc')](),controller[_0xf1f3('0x10')]);router[_0xf1f3('0xa')](_0xf1f3('0x11'),auth['isAuthenticated'](),controller[_0xf1f3('0x12')]);router['post']('/',auth[_0xf1f3('0xc')](),controller[_0xf1f3('0x13')]);router[_0xf1f3('0x14')](_0xf1f3('0xb'),auth[_0xf1f3('0xc')](),controller[_0xf1f3('0x15')]);router[_0xf1f3('0x16')]('/:id',auth[_0xf1f3('0xc')](),controller['destroy']);module['exports']=router;