Built motion from commit 598073ad.|2.5.44
[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 _0x174a=['put','update','destroy','multer','util','connect-timeout','express','Router','../../config/environment','get','isAuthenticated','index','/:id','show','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','create'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0x174a,0x17f));var _0xa174=function(_0xa224eb,_0x54f8bc){_0xa224eb=_0xa224eb-0x0;var _0x472189=_0x174a[_0xa224eb];return _0x472189;};'use strict';var multer=require(_0xa174('0x0'));var util=require(_0xa174('0x1'));var path=require('path');var timeout=require(_0xa174('0x2'));var express=require(_0xa174('0x3'));var router=express[_0xa174('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xa174('0x5'));var controller=require('./intZohoConfiguration.controller');router[_0xa174('0x6')]('/',auth[_0xa174('0x7')](),controller[_0xa174('0x8')]);router[_0xa174('0x6')](_0xa174('0x9'),auth[_0xa174('0x7')](),controller[_0xa174('0xa')]);router[_0xa174('0x6')]('/:id/fields',auth[_0xa174('0x7')](),controller[_0xa174('0xb')]);router[_0xa174('0x6')](_0xa174('0xc'),auth['isAuthenticated'](),controller[_0xa174('0xd')]);router[_0xa174('0x6')](_0xa174('0xe'),auth[_0xa174('0x7')](),controller[_0xa174('0xf')]);router['post']('/',auth[_0xa174('0x7')](),controller[_0xa174('0x10')]);router[_0xa174('0x11')](_0xa174('0x9'),auth['isAuthenticated'](),controller[_0xa174('0x12')]);router['delete'](_0xa174('0x9'),auth[_0xa174('0x7')](),controller[_0xa174('0x13')]);module['exports']=router;