Built motion from commit efa66e19.|2.6.22
[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 _0x9b0b=['create','put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','./intZohoConfiguration.controller','isAuthenticated','index','/:id','show','/:id/fields','getFields','get','/:id/subjects','/:id/descriptions','getDescriptions','post'];(function(_0x1f27df,_0x4f1a64){var _0x286ee2=function(_0x255ea7){while(--_0x255ea7){_0x1f27df['push'](_0x1f27df['shift']());}};_0x286ee2(++_0x4f1a64);}(_0x9b0b,0x1e1));var _0xb9b0=function(_0x125ff8,_0x41925f){_0x125ff8=_0x125ff8-0x0;var _0x2d9ef=_0x9b0b[_0x125ff8];return _0x2d9ef;};'use strict';var multer=require(_0xb9b0('0x0'));var util=require('util');var path=require(_0xb9b0('0x1'));var timeout=require(_0xb9b0('0x2'));var express=require(_0xb9b0('0x3'));var router=express[_0xb9b0('0x4')]();var fs_extra=require(_0xb9b0('0x5'));var auth=require(_0xb9b0('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb9b0('0x7'));router['get']('/',auth[_0xb9b0('0x8')](),controller[_0xb9b0('0x9')]);router['get'](_0xb9b0('0xa'),auth[_0xb9b0('0x8')](),controller[_0xb9b0('0xb')]);router['get'](_0xb9b0('0xc'),auth[_0xb9b0('0x8')](),controller[_0xb9b0('0xd')]);router[_0xb9b0('0xe')](_0xb9b0('0xf'),auth[_0xb9b0('0x8')](),controller['getSubjects']);router[_0xb9b0('0xe')](_0xb9b0('0x10'),auth[_0xb9b0('0x8')](),controller[_0xb9b0('0x11')]);router[_0xb9b0('0x12')]('/',auth[_0xb9b0('0x8')](),controller[_0xb9b0('0x13')]);router[_0xb9b0('0x14')]('/:id',auth['isAuthenticated'](),controller[_0xb9b0('0x15')]);router[_0xb9b0('0x16')](_0xb9b0('0xa'),auth[_0xb9b0('0x8')](),controller[_0xb9b0('0x17')]);module[_0xb9b0('0x18')]=router;