Built motion from commit ffdca78c.|2.6.24
[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 _0xc8f0=['getDescriptions','create','put','delete','destroy','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','getSubjects','/:id/descriptions'];(function(_0x7729b1,_0x468322){var _0x349504=function(_0x401cee){while(--_0x401cee){_0x7729b1['push'](_0x7729b1['shift']());}};_0x349504(++_0x468322);}(_0xc8f0,0x1e8));var _0x0c8f=function(_0x4bb353,_0x53029a){_0x4bb353=_0x4bb353-0x0;var _0x35d649=_0xc8f0[_0x4bb353];return _0x35d649;};'use strict';var multer=require(_0x0c8f('0x0'));var util=require('util');var path=require(_0x0c8f('0x1'));var timeout=require(_0x0c8f('0x2'));var express=require(_0x0c8f('0x3'));var router=express[_0x0c8f('0x4')]();var fs_extra=require(_0x0c8f('0x5'));var auth=require(_0x0c8f('0x6'));var interaction=require(_0x0c8f('0x7'));var config=require(_0x0c8f('0x8'));var controller=require('./intZohoConfiguration.controller');router[_0x0c8f('0x9')]('/',auth[_0x0c8f('0xa')](),controller[_0x0c8f('0xb')]);router[_0x0c8f('0x9')](_0x0c8f('0xc'),auth[_0x0c8f('0xa')](),controller[_0x0c8f('0xd')]);router[_0x0c8f('0x9')](_0x0c8f('0xe'),auth[_0x0c8f('0xa')](),controller[_0x0c8f('0xf')]);router[_0x0c8f('0x9')]('/:id/subjects',auth[_0x0c8f('0xa')](),controller[_0x0c8f('0x10')]);router[_0x0c8f('0x9')](_0x0c8f('0x11'),auth[_0x0c8f('0xa')](),controller[_0x0c8f('0x12')]);router['post']('/',auth['isAuthenticated'](),controller[_0x0c8f('0x13')]);router[_0x0c8f('0x14')](_0x0c8f('0xc'),auth[_0x0c8f('0xa')](),controller['update']);router[_0x0c8f('0x15')](_0x0c8f('0xc'),auth[_0x0c8f('0xa')](),controller[_0x0c8f('0x16')]);module['exports']=router;