Built motion from commit 14588770.|2.5.38
[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 _0x3e8f=['util','path','express','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','show','getFields','/:id/subjects','/:id/descriptions','post','create','delete','destroy'];(function(_0x34d78,_0x3f9f85){var _0x148ef9=function(_0x543344){while(--_0x543344){_0x34d78['push'](_0x34d78['shift']());}};_0x148ef9(++_0x3f9f85);}(_0x3e8f,0xb4));var _0xf3e8=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x3e8f[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require(_0xf3e8('0x0'));var path=require(_0xf3e8('0x1'));var timeout=require('connect-timeout');var express=require(_0xf3e8('0x2'));var router=express['Router']();var fs_extra=require(_0xf3e8('0x3'));var auth=require(_0xf3e8('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xf3e8('0x5'));var controller=require('./intZohoConfiguration.controller');router[_0xf3e8('0x6')]('/',auth[_0xf3e8('0x7')](),controller[_0xf3e8('0x8')]);router['get'](_0xf3e8('0x9'),auth[_0xf3e8('0x7')](),controller[_0xf3e8('0xa')]);router[_0xf3e8('0x6')]('/:id/fields',auth[_0xf3e8('0x7')](),controller[_0xf3e8('0xb')]);router[_0xf3e8('0x6')](_0xf3e8('0xc'),auth[_0xf3e8('0x7')](),controller['getSubjects']);router[_0xf3e8('0x6')](_0xf3e8('0xd'),auth[_0xf3e8('0x7')](),controller['getDescriptions']);router[_0xf3e8('0xe')]('/',auth[_0xf3e8('0x7')](),controller[_0xf3e8('0xf')]);router['put'](_0xf3e8('0x9'),auth[_0xf3e8('0x7')](),controller['update']);router[_0xf3e8('0x10')](_0xf3e8('0x9'),auth[_0xf3e8('0x7')](),controller[_0xf3e8('0x11')]);module['exports']=router;