0a5e8dc1668942460d7913672c5ae44d8cc8a3f4
[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 _0xfa09=['destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowAccount.controller','index','get','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','post','create','put','delete'];(function(_0x5e08c5,_0xd31397){var _0x34c291=function(_0x1d341d){while(--_0x1d341d){_0x5e08c5['push'](_0x5e08c5['shift']());}};_0x34c291(++_0xd31397);}(_0xfa09,0x7f));var _0x9fa0=function(_0x848e01,_0x1641ce){_0x848e01=_0x848e01-0x0;var _0x33f7b4=_0xfa09[_0x848e01];return _0x33f7b4;};'use strict';var multer=require(_0x9fa0('0x0'));var util=require(_0x9fa0('0x1'));var path=require(_0x9fa0('0x2'));var timeout=require(_0x9fa0('0x3'));var express=require(_0x9fa0('0x4'));var router=express[_0x9fa0('0x5')]();var fs_extra=require(_0x9fa0('0x6'));var auth=require(_0x9fa0('0x7'));var interaction=require(_0x9fa0('0x8'));var config=require(_0x9fa0('0x9'));var controller=require(_0x9fa0('0xa'));router['get']('/',auth['isAuthenticated'](),controller[_0x9fa0('0xb')]);router[_0x9fa0('0xc')](_0x9fa0('0xd'),auth[_0x9fa0('0xe')](),controller[_0x9fa0('0xf')]);router[_0x9fa0('0xc')](_0x9fa0('0x10'),auth[_0x9fa0('0xe')](),controller[_0x9fa0('0x11')]);router['get'](_0x9fa0('0x12'),auth[_0x9fa0('0xe')](),controller['getFields']);router[_0x9fa0('0x13')]('/',auth[_0x9fa0('0xe')](),controller[_0x9fa0('0x14')]);router[_0x9fa0('0x13')](_0x9fa0('0x10'),auth[_0x9fa0('0xe')](),controller['addConfiguration']);router[_0x9fa0('0x15')](_0x9fa0('0xd'),auth[_0x9fa0('0xe')](),controller['update']);router[_0x9fa0('0x16')](_0x9fa0('0xd'),auth[_0x9fa0('0xe')](),controller[_0x9fa0('0x17')]);module[_0x9fa0('0x18')]=router;