Built motion from commit b5996064.|2.6.21
[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 _0xf49b=['get','isAuthenticated','index','/:id','/:id/fields','/:id/descriptions','post','create','update','destroy','multer','util','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./intZohoConfiguration.controller'];(function(_0x5ab5c8,_0x322675){var _0x5e97fe=function(_0x2e6e32){while(--_0x2e6e32){_0x5ab5c8['push'](_0x5ab5c8['shift']());}};_0x5e97fe(++_0x322675);}(_0xf49b,0x64));var _0xbf49=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0xf49b[_0x2dafbe];return _0x58a45a;};'use strict';var multer=require(_0xbf49('0x0'));var util=require(_0xbf49('0x1'));var path=require('path');var timeout=require(_0xbf49('0x2'));var express=require(_0xbf49('0x3'));var router=express[_0xbf49('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xbf49('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xbf49('0x6'));var controller=require(_0xbf49('0x7'));router[_0xbf49('0x8')]('/',auth[_0xbf49('0x9')](),controller[_0xbf49('0xa')]);router[_0xbf49('0x8')](_0xbf49('0xb'),auth[_0xbf49('0x9')](),controller['show']);router['get'](_0xbf49('0xc'),auth['isAuthenticated'](),controller['getFields']);router[_0xbf49('0x8')]('/:id/subjects',auth[_0xbf49('0x9')](),controller['getSubjects']);router[_0xbf49('0x8')](_0xbf49('0xd'),auth[_0xbf49('0x9')](),controller['getDescriptions']);router[_0xbf49('0xe')]('/',auth[_0xbf49('0x9')](),controller[_0xbf49('0xf')]);router['put']('/:id',auth[_0xbf49('0x9')](),controller[_0xbf49('0x10')]);router['delete'](_0xbf49('0xb'),auth[_0xbf49('0x9')](),controller[_0xbf49('0x11')]);module['exports']=router;