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