94748ee57d52b08b7d0324bece972d562a82b0fa
[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 _0xbe23=['getConfigurations','/:id/fields','getFields','post','/:id/configurations','put','delete','destroy','exports','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowAccount.controller','get','isAuthenticated','/:id','show'];(function(_0x3a6edb,_0x2b5f99){var _0x1821af=function(_0x22b264){while(--_0x22b264){_0x3a6edb['push'](_0x3a6edb['shift']());}};_0x1821af(++_0x2b5f99);}(_0xbe23,0x1c2));var _0x3be2=function(_0x2cc9a0,_0x1c456d){_0x2cc9a0=_0x2cc9a0-0x0;var _0x15d5b2=_0xbe23[_0x2cc9a0];return _0x15d5b2;};'use strict';var multer=require(_0x3be2('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x3be2('0x1'));var express=require(_0x3be2('0x2'));var router=express[_0x3be2('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x3be2('0x4'));var interaction=require(_0x3be2('0x5'));var config=require(_0x3be2('0x6'));var controller=require(_0x3be2('0x7'));router[_0x3be2('0x8')]('/',auth[_0x3be2('0x9')](),controller['index']);router['get'](_0x3be2('0xa'),auth[_0x3be2('0x9')](),controller[_0x3be2('0xb')]);router[_0x3be2('0x8')]('/:id/configurations',auth[_0x3be2('0x9')](),controller[_0x3be2('0xc')]);router[_0x3be2('0x8')](_0x3be2('0xd'),auth[_0x3be2('0x9')](),controller[_0x3be2('0xe')]);router[_0x3be2('0xf')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0x3be2('0x10'),auth[_0x3be2('0x9')](),controller['addConfiguration']);router[_0x3be2('0x11')](_0x3be2('0xa'),auth[_0x3be2('0x9')](),controller['update']);router[_0x3be2('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x3be2('0x13')]);module[_0x3be2('0x14')]=router;