440583fe072d95297500e571b2ee367d78d51842
[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 _0x802b=['put','/:id','update','delete','destroy','exports','util','connect-timeout','express','Router','fs-extra','../../config/environment','./intServicenowAccount.controller','get','isAuthenticated','index','show','getConfigurations','/:id/fields','getFields','post','/:id/configurations','addConfiguration'];(function(_0x39941c,_0x4ad1bb){var _0x52d9c7=function(_0x4e107e){while(--_0x4e107e){_0x39941c['push'](_0x39941c['shift']());}};_0x52d9c7(++_0x4ad1bb);}(_0x802b,0x103));var _0xb802=function(_0xa261f5,_0x37ed4e){_0xa261f5=_0xa261f5-0x0;var _0x4a889b=_0x802b[_0xa261f5];return _0x4a889b;};'use strict';var multer=require('multer');var util=require(_0xb802('0x0'));var path=require('path');var timeout=require(_0xb802('0x1'));var express=require(_0xb802('0x2'));var router=express[_0xb802('0x3')]();var fs_extra=require(_0xb802('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xb802('0x5'));var controller=require(_0xb802('0x6'));router[_0xb802('0x7')]('/',auth[_0xb802('0x8')](),controller[_0xb802('0x9')]);router[_0xb802('0x7')]('/:id',auth[_0xb802('0x8')](),controller[_0xb802('0xa')]);router['get']('/:id/configurations',auth[_0xb802('0x8')](),controller[_0xb802('0xb')]);router['get'](_0xb802('0xc'),auth[_0xb802('0x8')](),controller[_0xb802('0xd')]);router[_0xb802('0xe')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0xb802('0xf'),auth[_0xb802('0x8')](),controller[_0xb802('0x10')]);router[_0xb802('0x11')](_0xb802('0x12'),auth[_0xb802('0x8')](),controller[_0xb802('0x13')]);router[_0xb802('0x14')](_0xb802('0x12'),auth[_0xb802('0x8')](),controller[_0xb802('0x15')]);module[_0xb802('0x16')]=router;