Built motion from commit 9d0783e6.|2.6.13
[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 _0xb88e=['/:id/descriptions','getDescriptions','create','update','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intZohoConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/fields','/:id/subjects','getSubjects'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0xb88e,0x79));var _0xeb88=function(_0x56cc40,_0x19bcd){_0x56cc40=_0x56cc40-0x0;var _0x1899b6=_0xb88e[_0x56cc40];return _0x1899b6;};'use strict';var multer=require(_0xeb88('0x0'));var util=require(_0xeb88('0x1'));var path=require(_0xeb88('0x2'));var timeout=require(_0xeb88('0x3'));var express=require(_0xeb88('0x4'));var router=express[_0xeb88('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xeb88('0x6'));var interaction=require(_0xeb88('0x7'));var config=require('../../config/environment');var controller=require(_0xeb88('0x8'));router[_0xeb88('0x9')]('/',auth[_0xeb88('0xa')](),controller[_0xeb88('0xb')]);router['get'](_0xeb88('0xc'),auth['isAuthenticated'](),controller[_0xeb88('0xd')]);router['get'](_0xeb88('0xe'),auth[_0xeb88('0xa')](),controller['getFields']);router[_0xeb88('0x9')](_0xeb88('0xf'),auth[_0xeb88('0xa')](),controller[_0xeb88('0x10')]);router[_0xeb88('0x9')](_0xeb88('0x11'),auth['isAuthenticated'](),controller[_0xeb88('0x12')]);router['post']('/',auth[_0xeb88('0xa')](),controller[_0xeb88('0x13')]);router['put'](_0xeb88('0xc'),auth[_0xeb88('0xa')](),controller[_0xeb88('0x14')]);router['delete']('/:id',auth[_0xeb88('0xa')](),controller[_0xeb88('0x15')]);module[_0xeb88('0x16')]=router;