24105a0acc9cbdeee5866efb55fa76ba549993d1
[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 _0xabe8=['getConfigurations','post','create','put','/:id','update','destroy','multer','util','path','express','Router','../../components/interaction/service','./intServicenowAccount.controller','get','isAuthenticated','index','show','/:id/configurations'];(function(_0x3f1ba9,_0x51ffb4){var _0x534b5c=function(_0xa9e2f7){while(--_0xa9e2f7){_0x3f1ba9['push'](_0x3f1ba9['shift']());}};_0x534b5c(++_0x51ffb4);}(_0xabe8,0x8c));var _0x8abe=function(_0x483592,_0x143c23){_0x483592=_0x483592-0x0;var _0x3b9fdc=_0xabe8[_0x483592];return _0x3b9fdc;};'use strict';var multer=require(_0x8abe('0x0'));var util=require(_0x8abe('0x1'));var path=require(_0x8abe('0x2'));var timeout=require('connect-timeout');var express=require(_0x8abe('0x3'));var router=express[_0x8abe('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x8abe('0x5'));var config=require('../../config/environment');var controller=require(_0x8abe('0x6'));router[_0x8abe('0x7')]('/',auth[_0x8abe('0x8')](),controller[_0x8abe('0x9')]);router[_0x8abe('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x8abe('0xa')]);router[_0x8abe('0x7')](_0x8abe('0xb'),auth[_0x8abe('0x8')](),controller[_0x8abe('0xc')]);router[_0x8abe('0x7')]('/:id/fields',auth['isAuthenticated'](),controller['getFields']);router[_0x8abe('0xd')]('/',auth[_0x8abe('0x8')](),controller[_0x8abe('0xe')]);router[_0x8abe('0xd')](_0x8abe('0xb'),auth['isAuthenticated'](),controller['addConfiguration']);router[_0x8abe('0xf')](_0x8abe('0x10'),auth[_0x8abe('0x8')](),controller[_0x8abe('0x11')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x8abe('0x12')]);module['exports']=router;