7c43cc8847e2c02ab7205c4a3a71d3d506a776f1
[motion2.git] / server / api / intServicenowAccount / 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 _0x29fc=['./intServicenowAccount.controller','isAuthenticated','get','/:id','/:id/configurations','/:id/fields','getFields','create','post','addConfiguration','put','update','delete','destroy','util','connect-timeout','fs-extra','../../components/interaction/service'];(function(_0x589d2f,_0xc49372){var _0x1db27c=function(_0x25d0d3){while(--_0x25d0d3){_0x589d2f['push'](_0x589d2f['shift']());}};_0x1db27c(++_0xc49372);}(_0x29fc,0xb0));var _0xc29f=function(_0x305bf8,_0x3fc0ad){_0x305bf8=_0x305bf8-0x0;var _0x2b1919=_0x29fc[_0x305bf8];return _0x2b1919;};'use strict';var multer=require('multer');var util=require(_0xc29f('0x0'));var path=require('path');var timeout=require(_0xc29f('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xc29f('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0xc29f('0x3'));var config=require('../../config/environment');var controller=require(_0xc29f('0x4'));router['get']('/',auth[_0xc29f('0x5')](),controller['index']);router[_0xc29f('0x6')](_0xc29f('0x7'),auth['isAuthenticated'](),controller['show']);router[_0xc29f('0x6')](_0xc29f('0x8'),auth['isAuthenticated'](),controller['getConfigurations']);router[_0xc29f('0x6')](_0xc29f('0x9'),auth[_0xc29f('0x5')](),controller[_0xc29f('0xa')]);router['post']('/',auth[_0xc29f('0x5')](),controller[_0xc29f('0xb')]);router[_0xc29f('0xc')](_0xc29f('0x8'),auth[_0xc29f('0x5')](),controller[_0xc29f('0xd')]);router[_0xc29f('0xe')]('/:id',auth[_0xc29f('0x5')](),controller[_0xc29f('0xf')]);router[_0xc29f('0x10')]('/:id',auth[_0xc29f('0x5')](),controller[_0xc29f('0x11')]);module['exports']=router;