a02ef5f1d62100070d692003ebd6c4a553d7f299
[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 _0x93b6=['/:id/descriptions','getDescriptions','post','put','update','delete','exports','multer','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoConfiguration.controller','get','isAuthenticated','index','/:id','getFields','/:id/subjects','getSubjects'];(function(_0x2cefac,_0x47d914){var _0x268cca=function(_0x291896){while(--_0x291896){_0x2cefac['push'](_0x2cefac['shift']());}};_0x268cca(++_0x47d914);}(_0x93b6,0x151));var _0x693b=function(_0x5c437a,_0x4ce2f0){_0x5c437a=_0x5c437a-0x0;var _0x389e25=_0x93b6[_0x5c437a];return _0x389e25;};'use strict';var multer=require(_0x693b('0x0'));var util=require(_0x693b('0x1'));var path=require('path');var timeout=require(_0x693b('0x2'));var express=require(_0x693b('0x3'));var router=express['Router']();var auth=require(_0x693b('0x4'));var interaction=require(_0x693b('0x5'));var config=require(_0x693b('0x6'));var controller=require(_0x693b('0x7'));router[_0x693b('0x8')]('/',auth[_0x693b('0x9')](),controller[_0x693b('0xa')]);router[_0x693b('0x8')](_0x693b('0xb'),auth[_0x693b('0x9')](),controller['show']);router['get']('/:id/fields',auth[_0x693b('0x9')](),controller[_0x693b('0xc')]);router[_0x693b('0x8')](_0x693b('0xd'),auth[_0x693b('0x9')](),controller[_0x693b('0xe')]);router[_0x693b('0x8')](_0x693b('0xf'),auth['isAuthenticated'](),controller[_0x693b('0x10')]);router[_0x693b('0x11')]('/',auth[_0x693b('0x9')](),controller['create']);router[_0x693b('0x12')](_0x693b('0xb'),auth[_0x693b('0x9')](),controller[_0x693b('0x13')]);router[_0x693b('0x14')](_0x693b('0xb'),auth[_0x693b('0x9')](),controller['destroy']);module[_0x693b('0x15')]=router;