Built motion from commit (unavailable).|2.4.21
[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 _0x21f8=['path','connect-timeout','express','Router','../../components/auth/service','get','isAuthenticated','index','/:id','show','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','put','delete','destroy','exports','multer','util'];(function(_0x1c3e44,_0x3922d1){var _0xf80202=function(_0x20cb8b){while(--_0x20cb8b){_0x1c3e44['push'](_0x1c3e44['shift']());}};_0xf80202(++_0x3922d1);}(_0x21f8,0x71));var _0x821f=function(_0x59e862,_0x477bf2){_0x59e862=_0x59e862-0x0;var _0x1a25ee=_0x21f8[_0x59e862];return _0x1a25ee;};'use strict';var multer=require(_0x821f('0x0'));var util=require(_0x821f('0x1'));var path=require(_0x821f('0x2'));var timeout=require(_0x821f('0x3'));var express=require(_0x821f('0x4'));var router=express[_0x821f('0x5')]();var auth=require(_0x821f('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intZohoConfiguration.controller');router[_0x821f('0x7')]('/',auth[_0x821f('0x8')](),controller[_0x821f('0x9')]);router[_0x821f('0x7')](_0x821f('0xa'),auth[_0x821f('0x8')](),controller[_0x821f('0xb')]);router[_0x821f('0x7')]('/:id/fields',auth['isAuthenticated'](),controller[_0x821f('0xc')]);router[_0x821f('0x7')](_0x821f('0xd'),auth['isAuthenticated'](),controller[_0x821f('0xe')]);router[_0x821f('0x7')](_0x821f('0xf'),auth[_0x821f('0x8')](),controller[_0x821f('0x10')]);router[_0x821f('0x11')]('/',auth[_0x821f('0x8')](),controller[_0x821f('0x12')]);router[_0x821f('0x13')](_0x821f('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x821f('0x14')](_0x821f('0xa'),auth[_0x821f('0x8')](),controller[_0x821f('0x15')]);module[_0x821f('0x16')]=router;