Built motion from commit (unavailable).|2.5.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 _0x2f68=['util','path','connect-timeout','express','../../components/auth/service','../../config/environment','./intZohoConfiguration.controller','isAuthenticated','index','/:id/fields','getFields','/:id/subjects','get','/:id/descriptions','getDescriptions','post','put','/:id','update','delete','destroy','exports'];(function(_0x3dc321,_0x2f3748){var _0x264ab3=function(_0x22f1c6){while(--_0x22f1c6){_0x3dc321['push'](_0x3dc321['shift']());}};_0x264ab3(++_0x2f3748);}(_0x2f68,0x9a));var _0x82f6=function(_0x30c07f,_0x30745f){_0x30c07f=_0x30c07f-0x0;var _0x2a90d2=_0x2f68[_0x30c07f];return _0x2a90d2;};'use strict';var multer=require('multer');var util=require(_0x82f6('0x0'));var path=require(_0x82f6('0x1'));var timeout=require(_0x82f6('0x2'));var express=require(_0x82f6('0x3'));var router=express['Router']();var auth=require(_0x82f6('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x82f6('0x5'));var controller=require(_0x82f6('0x6'));router['get']('/',auth[_0x82f6('0x7')](),controller[_0x82f6('0x8')]);router['get']('/:id',auth[_0x82f6('0x7')](),controller['show']);router['get'](_0x82f6('0x9'),auth[_0x82f6('0x7')](),controller[_0x82f6('0xa')]);router['get'](_0x82f6('0xb'),auth[_0x82f6('0x7')](),controller['getSubjects']);router[_0x82f6('0xc')](_0x82f6('0xd'),auth[_0x82f6('0x7')](),controller[_0x82f6('0xe')]);router[_0x82f6('0xf')]('/',auth[_0x82f6('0x7')](),controller['create']);router[_0x82f6('0x10')](_0x82f6('0x11'),auth['isAuthenticated'](),controller[_0x82f6('0x12')]);router[_0x82f6('0x13')](_0x82f6('0x11'),auth[_0x82f6('0x7')](),controller[_0x82f6('0x14')]);module[_0x82f6('0x15')]=router;