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