1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xaaff=['create','put','update','destroy','exports','util','path','connect-timeout','express','fs-extra','../../config/environment','./intServicenowAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','getFields','post'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xaaff,0xad));var _0xfaaf=function(_0x9d639c,_0x524dbe){_0x9d639c=_0x9d639c-0x0;var _0x1671de=_0xaaff[_0x9d639c];return _0x1671de;};'use strict';var multer=require('multer');var util=require(_0xfaaf('0x0'));var path=require(_0xfaaf('0x1'));var timeout=require(_0xfaaf('0x2'));var express=require(_0xfaaf('0x3'));var router=express['Router']();var fs_extra=require(_0xfaaf('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xfaaf('0x5'));var controller=require(_0xfaaf('0x6'));router[_0xfaaf('0x7')]('/',auth[_0xfaaf('0x8')](),controller[_0xfaaf('0x9')]);router[_0xfaaf('0x7')](_0xfaaf('0xa'),auth[_0xfaaf('0x8')](),controller[_0xfaaf('0xb')]);router[_0xfaaf('0x7')](_0xfaaf('0xc'),auth[_0xfaaf('0x8')](),controller[_0xfaaf('0xd')]);router['get']('/:id/fields',auth[_0xfaaf('0x8')](),controller[_0xfaaf('0xe')]);router[_0xfaaf('0xf')]('/',auth[_0xfaaf('0x8')](),controller[_0xfaaf('0x10')]);router[_0xfaaf('0xf')](_0xfaaf('0xc'),auth['isAuthenticated'](),controller['addConfiguration']);router[_0xfaaf('0x11')](_0xfaaf('0xa'),auth[_0xfaaf('0x8')](),controller[_0xfaaf('0x12')]);router['delete'](_0xfaaf('0xa'),auth[_0xfaaf('0x8')](),controller[_0xfaaf('0x13')]);module[_0xfaaf('0x14')]=router;