Built motion from commit 0900f080.|2.5.45
[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 _0x6c0f=['getDescriptions','create','put','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects'];(function(_0x134c2e,_0x3573c4){var _0x2825db=function(_0x2a574d){while(--_0x2a574d){_0x134c2e['push'](_0x134c2e['shift']());}};_0x2825db(++_0x3573c4);}(_0x6c0f,0x10e));var _0xf6c0=function(_0x5db71c,_0x49f6d8){_0x5db71c=_0x5db71c-0x0;var _0x3b685d=_0x6c0f[_0x5db71c];return _0x3b685d;};'use strict';var multer=require(_0xf6c0('0x0'));var util=require(_0xf6c0('0x1'));var path=require(_0xf6c0('0x2'));var timeout=require(_0xf6c0('0x3'));var express=require(_0xf6c0('0x4'));var router=express[_0xf6c0('0x5')]();var fs_extra=require(_0xf6c0('0x6'));var auth=require(_0xf6c0('0x7'));var interaction=require(_0xf6c0('0x8'));var config=require(_0xf6c0('0x9'));var controller=require('./intZohoConfiguration.controller');router[_0xf6c0('0xa')]('/',auth[_0xf6c0('0xb')](),controller['index']);router['get'](_0xf6c0('0xc'),auth[_0xf6c0('0xb')](),controller[_0xf6c0('0xd')]);router[_0xf6c0('0xa')](_0xf6c0('0xe'),auth[_0xf6c0('0xb')](),controller[_0xf6c0('0xf')]);router['get'](_0xf6c0('0x10'),auth[_0xf6c0('0xb')](),controller[_0xf6c0('0x11')]);router['get']('/:id/descriptions',auth[_0xf6c0('0xb')](),controller[_0xf6c0('0x12')]);router['post']('/',auth['isAuthenticated'](),controller[_0xf6c0('0x13')]);router[_0xf6c0('0x14')](_0xf6c0('0xc'),auth[_0xf6c0('0xb')](),controller['update']);router[_0xf6c0('0x15')](_0xf6c0('0xc'),auth[_0xf6c0('0xb')](),controller[_0xf6c0('0x16')]);module[_0xf6c0('0x17')]=router;