Built motion from commit (unavailable).|2.5.24
[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 _0x9957=['remoteUri','serverUrl','ServicenowConfiguration','Configurations','ServicenowField','type','content','Variable','Descriptions','keyType','keyContent','Fields','customField','variableName','GetServicenowkAccount','../../client','getServicenowAccounts','Request','name','description','username','password'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0x9957,0x93));var _0x7995=function(_0x4cf98e,_0xba4b79){_0x4cf98e=_0x4cf98e-0x0;var _0x1623ac=_0x9957[_0x4cf98e];return _0x1623ac;};'use strict';var client=require(_0x7995('0x0'));exports[_0x7995('0x1')]=function(){return function(_0x2722a3){return client[_0x7995('0x2')]('GetServicenowAccount',{'options':{'raw':![],'attributes':['id',_0x7995('0x3'),_0x7995('0x4'),_0x7995('0x5'),_0x7995('0x6'),'email',_0x7995('0x7'),_0x7995('0x8')],'include':[{'model':_0x7995('0x9'),'as':_0x7995('0xa'),'attributes':['id',_0x7995('0x3')],'include':[{'model':_0x7995('0xb'),'as':'Subjects','attributes':['id',_0x7995('0xc'),_0x7995('0xd'),'variableName'],'include':[{'model':_0x7995('0xe'),'as':_0x7995('0xe'),'attributes':['id',_0x7995('0x3')]}]},{'model':_0x7995('0xb'),'as':_0x7995('0xf'),'attributes':['id',_0x7995('0xc'),_0x7995('0xd'),'key',_0x7995('0x10'),_0x7995('0x11'),'variableName'],'include':[{'model':_0x7995('0xe'),'as':_0x7995('0xe'),'attributes':['id',_0x7995('0x3')]}]},{'model':_0x7995('0xb'),'as':_0x7995('0x12'),'attributes':['id',_0x7995('0xc'),_0x7995('0xd'),'idField','nameField',_0x7995('0x13'),_0x7995('0x14')],'include':[{'model':_0x7995('0xe'),'as':_0x7995('0xe'),'attributes':['id',_0x7995('0x3')]}]}]}]},'log':_0x7995('0x15')});};};