e1f45268985e26ac95c92e551f6f6fe7ab2edcd2
[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 _0x0cf8=['util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intZohoConfiguration.controller','get','isAuthenticated','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','put','/:id','update','destroy','exports','multer'];(function(_0x45783c,_0x49c56d){var _0x1161da=function(_0x3c5d41){while(--_0x3c5d41){_0x45783c['push'](_0x45783c['shift']());}};_0x1161da(++_0x49c56d);}(_0x0cf8,0x1cd));var _0x80cf=function(_0x4188df,_0x5467c8){_0x4188df=_0x4188df-0x0;var _0xc7fa=_0x0cf8[_0x4188df];return _0xc7fa;};'use strict';var multer=require(_0x80cf('0x0'));var util=require(_0x80cf('0x1'));var path=require('path');var timeout=require(_0x80cf('0x2'));var express=require(_0x80cf('0x3'));var router=express[_0x80cf('0x4')]();var fs_extra=require(_0x80cf('0x5'));var auth=require(_0x80cf('0x6'));var interaction=require(_0x80cf('0x7'));var config=require('../../config/environment');var controller=require(_0x80cf('0x8'));router[_0x80cf('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0x80cf('0x9')]('/:id',auth[_0x80cf('0xa')](),controller['show']);router[_0x80cf('0x9')](_0x80cf('0xb'),auth[_0x80cf('0xa')](),controller[_0x80cf('0xc')]);router[_0x80cf('0x9')](_0x80cf('0xd'),auth[_0x80cf('0xa')](),controller[_0x80cf('0xe')]);router[_0x80cf('0x9')](_0x80cf('0xf'),auth[_0x80cf('0xa')](),controller[_0x80cf('0x10')]);router['post']('/',auth[_0x80cf('0xa')](),controller['create']);router[_0x80cf('0x11')](_0x80cf('0x12'),auth[_0x80cf('0xa')](),controller[_0x80cf('0x13')]);router['delete']('/:id',auth[_0x80cf('0xa')](),controller[_0x80cf('0x14')]);module[_0x80cf('0x15')]=router;