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