Built motion from commit 58b0471d.|2.6.29
[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 _0x32bb=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','/:id/fields','/:id/subjects','getSubjects','getDescriptions','create','put','update','delete','destroy','exports','multer','util','path','Router'];(function(_0x411017,_0x4a8117){var _0x2adeea=function(_0x545222){while(--_0x545222){_0x411017['push'](_0x411017['shift']());}};_0x2adeea(++_0x4a8117);}(_0x32bb,0x1f4));var _0xb32b=function(_0x12f688,_0x585c25){_0x12f688=_0x12f688-0x0;var _0x59c3de=_0x32bb[_0x12f688];return _0x59c3de;};'use strict';var multer=require(_0xb32b('0x0'));var util=require(_0xb32b('0x1'));var path=require(_0xb32b('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xb32b('0x3')]();var fs_extra=require(_0xb32b('0x4'));var auth=require(_0xb32b('0x5'));var interaction=require(_0xb32b('0x6'));var config=require(_0xb32b('0x7'));var controller=require('./intZohoConfiguration.controller');router[_0xb32b('0x8')]('/',auth[_0xb32b('0x9')](),controller['index']);router[_0xb32b('0x8')](_0xb32b('0xa'),auth[_0xb32b('0x9')](),controller['show']);router[_0xb32b('0x8')](_0xb32b('0xb'),auth[_0xb32b('0x9')](),controller['getFields']);router[_0xb32b('0x8')](_0xb32b('0xc'),auth['isAuthenticated'](),controller[_0xb32b('0xd')]);router[_0xb32b('0x8')]('/:id/descriptions',auth[_0xb32b('0x9')](),controller[_0xb32b('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0xb32b('0xf')]);router[_0xb32b('0x10')]('/:id',auth[_0xb32b('0x9')](),controller[_0xb32b('0x11')]);router[_0xb32b('0x12')]('/:id',auth[_0xb32b('0x9')](),controller[_0xb32b('0x13')]);module[_0xb32b('0x14')]=router;