Built motion from commit (unavailable).|2.5.1
[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 _0x8fa6=['/:id/fields','getFields','post','create','update','delete','destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','./intServicenowAccount.controller','index','/:id','isAuthenticated','show','get','/:id/configurations'];(function(_0x25248b,_0x3c8491){var _0x509939=function(_0x457a27){while(--_0x457a27){_0x25248b['push'](_0x25248b['shift']());}};_0x509939(++_0x3c8491);}(_0x8fa6,0x1c0));var _0x68fa=function(_0x4ebea1,_0x22121b){_0x4ebea1=_0x4ebea1-0x0;var _0x1d78d8=_0x8fa6[_0x4ebea1];return _0x1d78d8;};'use strict';var multer=require(_0x68fa('0x0'));var util=require(_0x68fa('0x1'));var path=require(_0x68fa('0x2'));var timeout=require('connect-timeout');var express=require(_0x68fa('0x3'));var router=express[_0x68fa('0x4')]();var auth=require(_0x68fa('0x5'));var interaction=require(_0x68fa('0x6'));var config=require('../../config/environment');var controller=require(_0x68fa('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x68fa('0x8')]);router['get'](_0x68fa('0x9'),auth[_0x68fa('0xa')](),controller[_0x68fa('0xb')]);router[_0x68fa('0xc')](_0x68fa('0xd'),auth[_0x68fa('0xa')](),controller['getConfigurations']);router[_0x68fa('0xc')](_0x68fa('0xe'),auth['isAuthenticated'](),controller[_0x68fa('0xf')]);router[_0x68fa('0x10')]('/',auth[_0x68fa('0xa')](),controller[_0x68fa('0x11')]);router['post']('/:id/configurations',auth[_0x68fa('0xa')](),controller['addConfiguration']);router['put']('/:id',auth[_0x68fa('0xa')](),controller[_0x68fa('0x12')]);router[_0x68fa('0x13')](_0x68fa('0x9'),auth[_0x68fa('0xa')](),controller[_0x68fa('0x14')]);module[_0x68fa('0x15')]=router;