Built motion from commit (unavailable).|2.3.91
[motion2.git] / server / services / ami / rpc / integrations / servicenow.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 _0x0829=['Request','GetServicenowAccount','password','email','remoteUri','ServicenowConfiguration','Configurations','name','content','variableName','Variable','ServicenowField','Descriptions','type','key','keyType','keyContent','idField','nameField','customField','GetServicenowkAccount','../../client','getServicenowAccounts'];(function(_0x20e9b2,_0x4e2f62){var _0x4c0a6e=function(_0x21d1ae){while(--_0x21d1ae){_0x20e9b2['push'](_0x20e9b2['shift']());}};_0x4c0a6e(++_0x4e2f62);}(_0x0829,0x112));var _0x9082=function(_0x3ce2ad,_0x2a9bb2){_0x3ce2ad=_0x3ce2ad-0x0;var _0x49090c=_0x0829[_0x3ce2ad];return _0x49090c;};'use strict';var client=require(_0x9082('0x0'));exports[_0x9082('0x1')]=function(){return function(_0x5055fd){return client[_0x9082('0x2')](_0x9082('0x3'),{'options':{'raw':![],'attributes':['id','name','description','username',_0x9082('0x4'),_0x9082('0x5'),_0x9082('0x6'),'serverUrl'],'include':[{'model':_0x9082('0x7'),'as':_0x9082('0x8'),'attributes':['id',_0x9082('0x9')],'include':[{'model':'ServicenowField','as':'Subjects','attributes':['id','type',_0x9082('0xa'),_0x9082('0xb')],'include':[{'model':_0x9082('0xc'),'as':'Variable','attributes':['id',_0x9082('0x9')]}]},{'model':_0x9082('0xd'),'as':_0x9082('0xe'),'attributes':['id',_0x9082('0xf'),_0x9082('0xa'),_0x9082('0x10'),_0x9082('0x11'),_0x9082('0x12'),_0x9082('0xb')],'include':[{'model':_0x9082('0xc'),'as':_0x9082('0xc'),'attributes':['id','name']}]},{'model':_0x9082('0xd'),'as':'Fields','attributes':['id',_0x9082('0xf'),_0x9082('0xa'),_0x9082('0x13'),_0x9082('0x14'),_0x9082('0x15'),'variableName'],'include':[{'model':_0x9082('0xc'),'as':_0x9082('0xc'),'attributes':['id','name']}]}]}]},'log':_0x9082('0x16')});};};