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 _0x9f62=['content','key','keyContent','variableName','Fields','idField','nameField','customField','Variable','GetServicenowkAccount','getServicenowAccounts','Request','GetServicenowAccount','name','password','email','remoteUri','serverUrl','Configurations','ServicenowField','Subjects','type'];(function(_0x5307d6,_0x3829cd){var _0x2fe36d=function(_0x58a955){while(--_0x58a955){_0x5307d6['push'](_0x5307d6['shift']());}};_0x2fe36d(++_0x3829cd);}(_0x9f62,0x154));var _0x29f6=function(_0x2e1547,_0x44507e){_0x2e1547=_0x2e1547-0x0;var _0x5a38a4=_0x9f62[_0x2e1547];return _0x5a38a4;};'use strict';var client=require('../../client');exports[_0x29f6('0x0')]=function(){return function(_0x4ce7cb){return client[_0x29f6('0x1')](_0x29f6('0x2'),{'options':{'raw':![],'attributes':['id',_0x29f6('0x3'),'description','username',_0x29f6('0x4'),_0x29f6('0x5'),_0x29f6('0x6'),_0x29f6('0x7')],'include':[{'model':'ServicenowConfiguration','as':_0x29f6('0x8'),'attributes':['id',_0x29f6('0x3')],'include':[{'model':_0x29f6('0x9'),'as':_0x29f6('0xa'),'attributes':['id',_0x29f6('0xb'),'content','variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x29f6('0x3')]}]},{'model':_0x29f6('0x9'),'as':'Descriptions','attributes':['id','type',_0x29f6('0xc'),_0x29f6('0xd'),'keyType',_0x29f6('0xe'),_0x29f6('0xf')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':'ServicenowField','as':_0x29f6('0x10'),'attributes':['id',_0x29f6('0xb'),_0x29f6('0xc'),_0x29f6('0x11'),_0x29f6('0x12'),_0x29f6('0x13'),_0x29f6('0xf')],'include':[{'model':_0x29f6('0x14'),'as':_0x29f6('0x14'),'attributes':['id',_0x29f6('0x3')]}]}]}]},'log':_0x29f6('0x15')});};};