ff64ce6375540f41a86c1e20519d9ad37bd17413
[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 _0x446c=['put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','isAuthenticated','index','show','get','/:id/configurations','/:id/fields','getFields','create','post','addConfiguration'];(function(_0x450bf9,_0x1895de){var _0x268350=function(_0xebafa7){while(--_0xebafa7){_0x450bf9['push'](_0x450bf9['shift']());}};_0x268350(++_0x1895de);}(_0x446c,0x156));var _0xc446=function(_0x2f1762,_0xab43df){_0x2f1762=_0x2f1762-0x0;var _0x8ab21=_0x446c[_0x2f1762];return _0x8ab21;};'use strict';var multer=require(_0xc446('0x0'));var util=require(_0xc446('0x1'));var path=require(_0xc446('0x2'));var timeout=require(_0xc446('0x3'));var express=require('express');var router=express[_0xc446('0x4')]();var fs_extra=require(_0xc446('0x5'));var auth=require(_0xc446('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xc446('0x7'));var controller=require('./intZohoAccount.controller');router['get']('/',auth[_0xc446('0x8')](),controller[_0xc446('0x9')]);router['get']('/:id',auth[_0xc446('0x8')](),controller[_0xc446('0xa')]);router[_0xc446('0xb')](_0xc446('0xc'),auth[_0xc446('0x8')](),controller['getConfigurations']);router[_0xc446('0xb')](_0xc446('0xd'),auth[_0xc446('0x8')](),controller[_0xc446('0xe')]);router['post']('/',auth[_0xc446('0x8')](),controller[_0xc446('0xf')]);router[_0xc446('0x10')](_0xc446('0xc'),auth[_0xc446('0x8')](),controller[_0xc446('0x11')]);router[_0xc446('0x12')](_0xc446('0x13'),auth[_0xc446('0x8')](),controller[_0xc446('0x14')]);router[_0xc446('0x15')](_0xc446('0x13'),auth[_0xc446('0x8')](),controller[_0xc446('0x16')]);module[_0xc446('0x17')]=router;