Built motion from commit 25580385.|2.6.2
[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 _0x54a8=['multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','/:id/descriptions','getDescriptions','post','create','put','update','delete','destroy','exports'];(function(_0x270a7c,_0x1390e0){var _0x6b4732=function(_0x5205d1){while(--_0x5205d1){_0x270a7c['push'](_0x270a7c['shift']());}};_0x6b4732(++_0x1390e0);}(_0x54a8,0x120));var _0x854a=function(_0x2489f6,_0x299706){_0x2489f6=_0x2489f6-0x0;var _0x1cf056=_0x54a8[_0x2489f6];return _0x1cf056;};'use strict';var multer=require(_0x854a('0x0'));var util=require(_0x854a('0x1'));var path=require(_0x854a('0x2'));var timeout=require(_0x854a('0x3'));var express=require(_0x854a('0x4'));var router=express[_0x854a('0x5')]();var fs_extra=require(_0x854a('0x6'));var auth=require(_0x854a('0x7'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intZohoConfiguration.controller');router[_0x854a('0x8')]('/',auth[_0x854a('0x9')](),controller[_0x854a('0xa')]);router['get'](_0x854a('0xb'),auth[_0x854a('0x9')](),controller[_0x854a('0xc')]);router[_0x854a('0x8')](_0x854a('0xd'),auth[_0x854a('0x9')](),controller[_0x854a('0xe')]);router[_0x854a('0x8')]('/:id/subjects',auth['isAuthenticated'](),controller['getSubjects']);router['get'](_0x854a('0xf'),auth[_0x854a('0x9')](),controller[_0x854a('0x10')]);router[_0x854a('0x11')]('/',auth[_0x854a('0x9')](),controller[_0x854a('0x12')]);router[_0x854a('0x13')](_0x854a('0xb'),auth[_0x854a('0x9')](),controller[_0x854a('0x14')]);router[_0x854a('0x15')]('/:id',auth['isAuthenticated'](),controller[_0x854a('0x16')]);module[_0x854a('0x17')]=router;