Built motion from commit 85328c08.|2.5.50
[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 _0xe9fe=['getSubjects','/:id/descriptions','create','put','/:id','update','destroy','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoConfiguration.controller','get','isAuthenticated','index','show','/:id/fields','getFields'];(function(_0x37d86b,_0x4a4334){var _0x14847d=function(_0x591420){while(--_0x591420){_0x37d86b['push'](_0x37d86b['shift']());}};_0x14847d(++_0x4a4334);}(_0xe9fe,0x18e));var _0xee9f=function(_0xa8b370,_0x2b77db){_0xa8b370=_0xa8b370-0x0;var _0x643e37=_0xe9fe[_0xa8b370];return _0x643e37;};'use strict';var multer=require(_0xee9f('0x0'));var util=require(_0xee9f('0x1'));var path=require(_0xee9f('0x2'));var timeout=require(_0xee9f('0x3'));var express=require('express');var router=express[_0xee9f('0x4')]();var fs_extra=require(_0xee9f('0x5'));var auth=require(_0xee9f('0x6'));var interaction=require(_0xee9f('0x7'));var config=require(_0xee9f('0x8'));var controller=require(_0xee9f('0x9'));router[_0xee9f('0xa')]('/',auth[_0xee9f('0xb')](),controller[_0xee9f('0xc')]);router[_0xee9f('0xa')]('/:id',auth[_0xee9f('0xb')](),controller[_0xee9f('0xd')]);router[_0xee9f('0xa')](_0xee9f('0xe'),auth[_0xee9f('0xb')](),controller[_0xee9f('0xf')]);router['get']('/:id/subjects',auth[_0xee9f('0xb')](),controller[_0xee9f('0x10')]);router[_0xee9f('0xa')](_0xee9f('0x11'),auth['isAuthenticated'](),controller['getDescriptions']);router['post']('/',auth[_0xee9f('0xb')](),controller[_0xee9f('0x12')]);router[_0xee9f('0x13')](_0xee9f('0x14'),auth[_0xee9f('0xb')](),controller[_0xee9f('0x15')]);router['delete'](_0xee9f('0x14'),auth[_0xee9f('0xb')](),controller[_0xee9f('0x16')]);module['exports']=router;