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