Built motion from commit d5e4af8c.|2.6.23
[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 _0x16a0=['connect-timeout','express','Router','fs-extra','../../components/interaction/service','./intZohoConfiguration.controller','get','isAuthenticated','index','/:id','/:id/fields','getFields','/:id/subjects','getSubjects','getDescriptions','post','create','put','delete','destroy','exports','util'];(function(_0x316932,_0x1e80ca){var _0x4d2dd5=function(_0xe4918e){while(--_0xe4918e){_0x316932['push'](_0x316932['shift']());}};_0x4d2dd5(++_0x1e80ca);}(_0x16a0,0x99));var _0x016a=function(_0x5c7263,_0x23a072){_0x5c7263=_0x5c7263-0x0;var _0x360657=_0x16a0[_0x5c7263];return _0x360657;};'use strict';var multer=require('multer');var util=require(_0x016a('0x0'));var path=require('path');var timeout=require(_0x016a('0x1'));var express=require(_0x016a('0x2'));var router=express[_0x016a('0x3')]();var fs_extra=require(_0x016a('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x016a('0x5'));var config=require('../../config/environment');var controller=require(_0x016a('0x6'));router[_0x016a('0x7')]('/',auth[_0x016a('0x8')](),controller[_0x016a('0x9')]);router[_0x016a('0x7')](_0x016a('0xa'),auth['isAuthenticated'](),controller['show']);router['get'](_0x016a('0xb'),auth[_0x016a('0x8')](),controller[_0x016a('0xc')]);router[_0x016a('0x7')](_0x016a('0xd'),auth[_0x016a('0x8')](),controller[_0x016a('0xe')]);router[_0x016a('0x7')]('/:id/descriptions',auth['isAuthenticated'](),controller[_0x016a('0xf')]);router[_0x016a('0x10')]('/',auth[_0x016a('0x8')](),controller[_0x016a('0x11')]);router[_0x016a('0x12')](_0x016a('0xa'),auth[_0x016a('0x8')](),controller['update']);router[_0x016a('0x13')](_0x016a('0xa'),auth['isAuthenticated'](),controller[_0x016a('0x14')]);module[_0x016a('0x15')]=router;