599ddeebf5519c6b9a35e2cc80e8e11e00d7e751
[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 _0xc3b5=['exports','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowAccount.controller','isAuthenticated','index','/:id','show','get','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','delete','destroy'];(function(_0x3429c4,_0x4560ea){var _0x10048c=function(_0x21ce51){while(--_0x21ce51){_0x3429c4['push'](_0x3429c4['shift']());}};_0x10048c(++_0x4560ea);}(_0xc3b5,0x6f));var _0x5c3b=function(_0x28e38b,_0x8faa02){_0x28e38b=_0x28e38b-0x0;var _0x5a8d5d=_0xc3b5[_0x28e38b];return _0x5a8d5d;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5c3b('0x0'));var timeout=require(_0x5c3b('0x1'));var express=require(_0x5c3b('0x2'));var router=express[_0x5c3b('0x3')]();var auth=require(_0x5c3b('0x4'));var interaction=require(_0x5c3b('0x5'));var config=require(_0x5c3b('0x6'));var controller=require(_0x5c3b('0x7'));router['get']('/',auth[_0x5c3b('0x8')](),controller[_0x5c3b('0x9')]);router['get'](_0x5c3b('0xa'),auth[_0x5c3b('0x8')](),controller[_0x5c3b('0xb')]);router[_0x5c3b('0xc')]('/:id/configurations',auth[_0x5c3b('0x8')](),controller[_0x5c3b('0xd')]);router[_0x5c3b('0xc')](_0x5c3b('0xe'),auth['isAuthenticated'](),controller[_0x5c3b('0xf')]);router[_0x5c3b('0x10')]('/',auth[_0x5c3b('0x8')](),controller[_0x5c3b('0x11')]);router[_0x5c3b('0x10')]('/:id/configurations',auth[_0x5c3b('0x8')](),controller[_0x5c3b('0x12')]);router['put'](_0x5c3b('0xa'),auth[_0x5c3b('0x8')](),controller['update']);router[_0x5c3b('0x13')](_0x5c3b('0xa'),auth[_0x5c3b('0x8')](),controller[_0x5c3b('0x14')]);module[_0x5c3b('0x15')]=router;