458796b41e8d9c68c23b9ab9289fec87d3bed22f
[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 _0xf657=['/:id/descriptions','getDescriptions','post','create','put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./intZohoConfiguration.controller','index','get','isAuthenticated','show','getFields','/:id/subjects','getSubjects'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0xf657,0xa6));var _0x7f65=function(_0x42fed6,_0x30a700){_0x42fed6=_0x42fed6-0x0;var _0x11a58b=_0xf657[_0x42fed6];return _0x11a58b;};'use strict';var multer=require(_0x7f65('0x0'));var util=require(_0x7f65('0x1'));var path=require(_0x7f65('0x2'));var timeout=require(_0x7f65('0x3'));var express=require('express');var router=express[_0x7f65('0x4')]();var fs_extra=require(_0x7f65('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x7f65('0x6'));var config=require(_0x7f65('0x7'));var controller=require(_0x7f65('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x7f65('0x9')]);router[_0x7f65('0xa')]('/:id',auth[_0x7f65('0xb')](),controller[_0x7f65('0xc')]);router[_0x7f65('0xa')]('/:id/fields',auth['isAuthenticated'](),controller[_0x7f65('0xd')]);router[_0x7f65('0xa')](_0x7f65('0xe'),auth['isAuthenticated'](),controller[_0x7f65('0xf')]);router[_0x7f65('0xa')](_0x7f65('0x10'),auth[_0x7f65('0xb')](),controller[_0x7f65('0x11')]);router[_0x7f65('0x12')]('/',auth[_0x7f65('0xb')](),controller[_0x7f65('0x13')]);router[_0x7f65('0x14')](_0x7f65('0x15'),auth[_0x7f65('0xb')](),controller[_0x7f65('0x16')]);router[_0x7f65('0x17')](_0x7f65('0x15'),auth[_0x7f65('0xb')](),controller[_0x7f65('0x18')]);module[_0x7f65('0x19')]=router;