2b375f361ae5d52646796aba977ea9df9effa206
[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 _0x0b40=['getConfigurations','getFields','post','create','/:id/configurations','addConfiguration','put','/:id','destroy','exports','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show'];(function(_0x28b07f,_0x48ce50){var _0x3dac90=function(_0x257ac6){while(--_0x257ac6){_0x28b07f['push'](_0x28b07f['shift']());}};_0x3dac90(++_0x48ce50);}(_0x0b40,0xba));var _0x00b4=function(_0x1992f1,_0x5c61f0){_0x1992f1=_0x1992f1-0x0;var _0x413dfe=_0x0b40[_0x1992f1];return _0x413dfe;};'use strict';var multer=require('multer');var util=require(_0x00b4('0x0'));var path=require(_0x00b4('0x1'));var timeout=require('connect-timeout');var express=require(_0x00b4('0x2'));var router=express[_0x00b4('0x3')]();var fs_extra=require(_0x00b4('0x4'));var auth=require(_0x00b4('0x5'));var interaction=require(_0x00b4('0x6'));var config=require(_0x00b4('0x7'));var controller=require('./intServicenowAccount.controller');router[_0x00b4('0x8')]('/',auth[_0x00b4('0x9')](),controller[_0x00b4('0xa')]);router[_0x00b4('0x8')]('/:id',auth[_0x00b4('0x9')](),controller[_0x00b4('0xb')]);router[_0x00b4('0x8')]('/:id/configurations',auth[_0x00b4('0x9')](),controller[_0x00b4('0xc')]);router['get']('/:id/fields',auth[_0x00b4('0x9')](),controller[_0x00b4('0xd')]);router[_0x00b4('0xe')]('/',auth[_0x00b4('0x9')](),controller[_0x00b4('0xf')]);router[_0x00b4('0xe')](_0x00b4('0x10'),auth[_0x00b4('0x9')](),controller[_0x00b4('0x11')]);router[_0x00b4('0x12')](_0x00b4('0x13'),auth[_0x00b4('0x9')](),controller['update']);router['delete'](_0x00b4('0x13'),auth[_0x00b4('0x9')](),controller[_0x00b4('0x14')]);module[_0x00b4('0x15')]=router;