Built motion from commit 2b9af5da.|2.6.26
[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 _0x47b1=['show','/:id/fields','isAuthenticated','getFields','post','create','put','/:id','update','delete','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../config/environment','get','index'];(function(_0x10a7b2,_0x37587c){var _0x5cf00e=function(_0x69b0b9){while(--_0x69b0b9){_0x10a7b2['push'](_0x10a7b2['shift']());}};_0x5cf00e(++_0x37587c);}(_0x47b1,0x1d3));var _0x147b=function(_0x1608c2,_0xfc7cd0){_0x1608c2=_0x1608c2-0x0;var _0x10b6f9=_0x47b1[_0x1608c2];return _0x10b6f9;};'use strict';var multer=require(_0x147b('0x0'));var util=require('util');var path=require(_0x147b('0x1'));var timeout=require(_0x147b('0x2'));var express=require('express');var router=express[_0x147b('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x147b('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x147b('0x5'));var controller=require('./intZohoConfiguration.controller');router[_0x147b('0x6')]('/',auth['isAuthenticated'](),controller[_0x147b('0x7')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x147b('0x8')]);router[_0x147b('0x6')](_0x147b('0x9'),auth[_0x147b('0xa')](),controller[_0x147b('0xb')]);router[_0x147b('0x6')]('/:id/subjects',auth[_0x147b('0xa')](),controller['getSubjects']);router[_0x147b('0x6')]('/:id/descriptions',auth['isAuthenticated'](),controller['getDescriptions']);router[_0x147b('0xc')]('/',auth[_0x147b('0xa')](),controller[_0x147b('0xd')]);router[_0x147b('0xe')](_0x147b('0xf'),auth[_0x147b('0xa')](),controller[_0x147b('0x10')]);router[_0x147b('0x11')](_0x147b('0xf'),auth[_0x147b('0xa')](),controller['destroy']);module[_0x147b('0x12')]=router;