bc84c618debc23708998dac8d21cad7703472a56
[motion2.git] / server / api / intZohoAccount / 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 _0x1bea=['addConfiguration','put','update','delete','destroy','exports','multer','path','connect-timeout','Router','fs-extra','./intZohoAccount.controller','get','isAuthenticated','/:id','show','/:id/configurations','/:id/fields','getFields'];(function(_0x408f3d,_0x14ced2){var _0x29afd0=function(_0x57f12c){while(--_0x57f12c){_0x408f3d['push'](_0x408f3d['shift']());}};_0x29afd0(++_0x14ced2);}(_0x1bea,0x65));var _0xa1be=function(_0x22185a,_0x2c9c0f){_0x22185a=_0x22185a-0x0;var _0x27e1f1=_0x1bea[_0x22185a];return _0x27e1f1;};'use strict';var multer=require(_0xa1be('0x0'));var util=require('util');var path=require(_0xa1be('0x1'));var timeout=require(_0xa1be('0x2'));var express=require('express');var router=express[_0xa1be('0x3')]();var fs_extra=require(_0xa1be('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xa1be('0x5'));router[_0xa1be('0x6')]('/',auth[_0xa1be('0x7')](),controller['index']);router[_0xa1be('0x6')](_0xa1be('0x8'),auth[_0xa1be('0x7')](),controller[_0xa1be('0x9')]);router['get'](_0xa1be('0xa'),auth[_0xa1be('0x7')](),controller['getConfigurations']);router[_0xa1be('0x6')](_0xa1be('0xb'),auth[_0xa1be('0x7')](),controller[_0xa1be('0xc')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['post'](_0xa1be('0xa'),auth[_0xa1be('0x7')](),controller[_0xa1be('0xd')]);router[_0xa1be('0xe')]('/:id',auth[_0xa1be('0x7')](),controller[_0xa1be('0xf')]);router[_0xa1be('0x10')](_0xa1be('0x8'),auth[_0xa1be('0x7')](),controller[_0xa1be('0x11')]);module[_0xa1be('0x12')]=router;