ced0d435701ae7f42f95f57c9d6caaff6b2d5181
[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 _0x5b45=['/:id/fields','/:id/subjects','/:id/descriptions','getDescriptions','post','create','put','delete','exports','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoConfiguration.controller','get','isAuthenticated','index','/:id'];(function(_0x5d6456,_0x58ecc7){var _0x4d66c1=function(_0x4335e3){while(--_0x4335e3){_0x5d6456['push'](_0x5d6456['shift']());}};_0x4d66c1(++_0x58ecc7);}(_0x5b45,0x12f));var _0x55b4=function(_0x2f37e0,_0x393ef9){_0x2f37e0=_0x2f37e0-0x0;var _0x43ccce=_0x5b45[_0x2f37e0];return _0x43ccce;};'use strict';var multer=require('multer');var util=require(_0x55b4('0x0'));var path=require(_0x55b4('0x1'));var timeout=require('connect-timeout');var express=require(_0x55b4('0x2'));var router=express['Router']();var fs_extra=require(_0x55b4('0x3'));var auth=require(_0x55b4('0x4'));var interaction=require(_0x55b4('0x5'));var config=require(_0x55b4('0x6'));var controller=require(_0x55b4('0x7'));router[_0x55b4('0x8')]('/',auth[_0x55b4('0x9')](),controller[_0x55b4('0xa')]);router[_0x55b4('0x8')](_0x55b4('0xb'),auth[_0x55b4('0x9')](),controller['show']);router['get'](_0x55b4('0xc'),auth['isAuthenticated'](),controller['getFields']);router[_0x55b4('0x8')](_0x55b4('0xd'),auth[_0x55b4('0x9')](),controller['getSubjects']);router['get'](_0x55b4('0xe'),auth[_0x55b4('0x9')](),controller[_0x55b4('0xf')]);router[_0x55b4('0x10')]('/',auth[_0x55b4('0x9')](),controller[_0x55b4('0x11')]);router[_0x55b4('0x12')](_0x55b4('0xb'),auth['isAuthenticated'](),controller['update']);router[_0x55b4('0x13')](_0x55b4('0xb'),auth[_0x55b4('0x9')](),controller['destroy']);module[_0x55b4('0x14')]=router;