Built motion from commit 9d0783e6.|2.6.13
[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 _0xf12f=['create','addConfiguration','update','delete','util','path','connect-timeout','fs-extra','../../config/environment','./intServicenowAccount.controller','get','isAuthenticated','index','/:id','/:id/configurations','getConfigurations','/:id/fields','getFields','post'];(function(_0x5c403,_0x1fbbf9){var _0x57696a=function(_0x242b77){while(--_0x242b77){_0x5c403['push'](_0x5c403['shift']());}};_0x57696a(++_0x1fbbf9);}(_0xf12f,0x9c));var _0xff12=function(_0x12786e,_0x121447){_0x12786e=_0x12786e-0x0;var _0xb65e70=_0xf12f[_0x12786e];return _0xb65e70;};'use strict';var multer=require('multer');var util=require(_0xff12('0x0'));var path=require(_0xff12('0x1'));var timeout=require(_0xff12('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xff12('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xff12('0x4'));var controller=require(_0xff12('0x5'));router[_0xff12('0x6')]('/',auth[_0xff12('0x7')](),controller[_0xff12('0x8')]);router[_0xff12('0x6')](_0xff12('0x9'),auth[_0xff12('0x7')](),controller['show']);router['get'](_0xff12('0xa'),auth['isAuthenticated'](),controller[_0xff12('0xb')]);router[_0xff12('0x6')](_0xff12('0xc'),auth['isAuthenticated'](),controller[_0xff12('0xd')]);router[_0xff12('0xe')]('/',auth[_0xff12('0x7')](),controller[_0xff12('0xf')]);router['post'](_0xff12('0xa'),auth[_0xff12('0x7')](),controller[_0xff12('0x10')]);router['put'](_0xff12('0x9'),auth['isAuthenticated'](),controller[_0xff12('0x11')]);router[_0xff12('0x12')](_0xff12('0x9'),auth[_0xff12('0x7')](),controller['destroy']);module['exports']=router;