Built motion from commit (unavailable).|2.5.23
[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 _0xedb7=['post','create','put','update','delete','destroy','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intServicenowAccount.controller','get','index','/:id','show','getConfigurations','isAuthenticated'];(function(_0x20c7ad,_0x2b184e){var _0x10338b=function(_0x588461){while(--_0x588461){_0x20c7ad['push'](_0x20c7ad['shift']());}};_0x10338b(++_0x2b184e);}(_0xedb7,0x8b));var _0x7edb=function(_0x2c8b89,_0x21b955){_0x2c8b89=_0x2c8b89-0x0;var _0xdca8b7=_0xedb7[_0x2c8b89];return _0xdca8b7;};'use strict';var multer=require('multer');var util=require(_0x7edb('0x0'));var path=require('path');var timeout=require(_0x7edb('0x1'));var express=require(_0x7edb('0x2'));var router=express[_0x7edb('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x7edb('0x4'));var config=require(_0x7edb('0x5'));var controller=require(_0x7edb('0x6'));router[_0x7edb('0x7')]('/',auth['isAuthenticated'](),controller[_0x7edb('0x8')]);router[_0x7edb('0x7')](_0x7edb('0x9'),auth['isAuthenticated'](),controller[_0x7edb('0xa')]);router[_0x7edb('0x7')]('/:id/configurations',auth['isAuthenticated'](),controller[_0x7edb('0xb')]);router[_0x7edb('0x7')]('/:id/fields',auth[_0x7edb('0xc')](),controller['getFields']);router[_0x7edb('0xd')]('/',auth['isAuthenticated'](),controller[_0x7edb('0xe')]);router[_0x7edb('0xd')]('/:id/configurations',auth[_0x7edb('0xc')](),controller['addConfiguration']);router[_0x7edb('0xf')](_0x7edb('0x9'),auth[_0x7edb('0xc')](),controller[_0x7edb('0x10')]);router[_0x7edb('0x11')](_0x7edb('0x9'),auth[_0x7edb('0xc')](),controller[_0x7edb('0x12')]);module['exports']=router;