Built motion from commit 3c2ce842.|2.6.31
[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 _0x07dd=['isAuthenticated','/:id/fields','/:id/subjects','/:id/descriptions','getDescriptions','post','create','put','/:id','update','delete','exports','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get'];(function(_0xcd3d34,_0x5a5acc){var _0x490679=function(_0x4cf368){while(--_0x4cf368){_0xcd3d34['push'](_0xcd3d34['shift']());}};_0x490679(++_0x5a5acc);}(_0x07dd,0x1c4));var _0xd07d=function(_0xa07178,_0x3e6d1c){_0xa07178=_0xa07178-0x0;var _0x2e4eb9=_0x07dd[_0xa07178];return _0x2e4eb9;};'use strict';var multer=require('multer');var util=require(_0xd07d('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xd07d('0x1'));var router=express[_0xd07d('0x2')]();var fs_extra=require(_0xd07d('0x3'));var auth=require(_0xd07d('0x4'));var interaction=require(_0xd07d('0x5'));var config=require(_0xd07d('0x6'));var controller=require('./intZohoConfiguration.controller');router[_0xd07d('0x7')]('/',auth[_0xd07d('0x8')](),controller['index']);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0xd07d('0x7')](_0xd07d('0x9'),auth[_0xd07d('0x8')](),controller['getFields']);router[_0xd07d('0x7')](_0xd07d('0xa'),auth[_0xd07d('0x8')](),controller['getSubjects']);router['get'](_0xd07d('0xb'),auth[_0xd07d('0x8')](),controller[_0xd07d('0xc')]);router[_0xd07d('0xd')]('/',auth['isAuthenticated'](),controller[_0xd07d('0xe')]);router[_0xd07d('0xf')](_0xd07d('0x10'),auth[_0xd07d('0x8')](),controller[_0xd07d('0x11')]);router[_0xd07d('0x12')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0xd07d('0x13')]=router;