Built motion from commit 43538d75.|2.5.35
[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 _0x10b5=['get','index','/:id','show','/:id/configurations','isAuthenticated','getConfigurations','/:id/fields','create','post','addConfiguration','put','update','destroy','exports','multer','util','connect-timeout','fs-extra','../../components/interaction/service','./intZohoAccount.controller'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0x10b5,0xcc));var _0x510b=function(_0x410cec,_0x27a591){_0x410cec=_0x410cec-0x0;var _0x19d3fd=_0x10b5[_0x410cec];return _0x19d3fd;};'use strict';var multer=require(_0x510b('0x0'));var util=require(_0x510b('0x1'));var path=require('path');var timeout=require(_0x510b('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x510b('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x510b('0x4'));var config=require('../../config/environment');var controller=require(_0x510b('0x5'));router[_0x510b('0x6')]('/',auth['isAuthenticated'](),controller[_0x510b('0x7')]);router[_0x510b('0x6')](_0x510b('0x8'),auth['isAuthenticated'](),controller[_0x510b('0x9')]);router['get'](_0x510b('0xa'),auth[_0x510b('0xb')](),controller[_0x510b('0xc')]);router['get'](_0x510b('0xd'),auth[_0x510b('0xb')](),controller['getFields']);router['post']('/',auth[_0x510b('0xb')](),controller[_0x510b('0xe')]);router[_0x510b('0xf')](_0x510b('0xa'),auth['isAuthenticated'](),controller[_0x510b('0x10')]);router[_0x510b('0x11')]('/:id',auth[_0x510b('0xb')](),controller[_0x510b('0x12')]);router['delete'](_0x510b('0x8'),auth[_0x510b('0xb')](),controller[_0x510b('0x13')]);module[_0x510b('0x14')]=router;