f659ca364e242dcc6ea7d6b266bf6d8c5e1f9412
[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 _0x35a9=['create','put','update','delete','exports','util','path','connect-timeout','express','../../components/interaction/service','./intZohoConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions'];(function(_0x1562a2,_0x2e4655){var _0x39a636=function(_0x25483a){while(--_0x25483a){_0x1562a2['push'](_0x1562a2['shift']());}};_0x39a636(++_0x2e4655);}(_0x35a9,0x73));var _0x935a=function(_0x58ba41,_0x1d4fbb){_0x58ba41=_0x58ba41-0x0;var _0x45b051=_0x35a9[_0x58ba41];return _0x45b051;};'use strict';var multer=require('multer');var util=require(_0x935a('0x0'));var path=require(_0x935a('0x1'));var timeout=require(_0x935a('0x2'));var express=require(_0x935a('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x935a('0x4'));var config=require('../../config/environment');var controller=require(_0x935a('0x5'));router[_0x935a('0x6')]('/',auth[_0x935a('0x7')](),controller[_0x935a('0x8')]);router[_0x935a('0x6')](_0x935a('0x9'),auth[_0x935a('0x7')](),controller[_0x935a('0xa')]);router['get'](_0x935a('0xb'),auth[_0x935a('0x7')](),controller[_0x935a('0xc')]);router[_0x935a('0x6')](_0x935a('0xd'),auth['isAuthenticated'](),controller[_0x935a('0xe')]);router[_0x935a('0x6')](_0x935a('0xf'),auth['isAuthenticated'](),controller[_0x935a('0x10')]);router['post']('/',auth['isAuthenticated'](),controller[_0x935a('0x11')]);router[_0x935a('0x12')](_0x935a('0x9'),auth[_0x935a('0x7')](),controller[_0x935a('0x13')]);router[_0x935a('0x14')](_0x935a('0x9'),auth[_0x935a('0x7')](),controller['destroy']);module[_0x935a('0x15')]=router;