6b2352aaad88e3214ccf3d681a6714dc3f7673ca
[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 _0x81ef=['../../components/auth/service','../../config/environment','get','isAuthenticated','/:id','show','/:id/fields','getFields','/:id/subjects','/:id/descriptions','getDescriptions','create','delete','destroy','multer','util','path','connect-timeout','express','Router'];(function(_0x20ef64,_0x4a8fe9){var _0x3707d8=function(_0x5b9a88){while(--_0x5b9a88){_0x20ef64['push'](_0x20ef64['shift']());}};_0x3707d8(++_0x4a8fe9);}(_0x81ef,0x14e));var _0xf81e=function(_0x26e209,_0x5dc55d){_0x26e209=_0x26e209-0x0;var _0x42fc16=_0x81ef[_0x26e209];return _0x42fc16;};'use strict';var multer=require(_0xf81e('0x0'));var util=require(_0xf81e('0x1'));var path=require(_0xf81e('0x2'));var timeout=require(_0xf81e('0x3'));var express=require(_0xf81e('0x4'));var router=express[_0xf81e('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xf81e('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xf81e('0x7'));var controller=require('./intZohoConfiguration.controller');router[_0xf81e('0x8')]('/',auth[_0xf81e('0x9')](),controller['index']);router[_0xf81e('0x8')](_0xf81e('0xa'),auth['isAuthenticated'](),controller[_0xf81e('0xb')]);router[_0xf81e('0x8')](_0xf81e('0xc'),auth[_0xf81e('0x9')](),controller[_0xf81e('0xd')]);router[_0xf81e('0x8')](_0xf81e('0xe'),auth['isAuthenticated'](),controller['getSubjects']);router[_0xf81e('0x8')](_0xf81e('0xf'),auth['isAuthenticated'](),controller[_0xf81e('0x10')]);router['post']('/',auth[_0xf81e('0x9')](),controller[_0xf81e('0x11')]);router['put'](_0xf81e('0xa'),auth[_0xf81e('0x9')](),controller['update']);router[_0xf81e('0x12')](_0xf81e('0xa'),auth['isAuthenticated'](),controller[_0xf81e('0x13')]);module['exports']=router;