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