Built motion from commit (unavailable).|2.5.14
[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 _0x00bb=['description','username','email','remoteUri','name','ServicenowField','Subjects','type','content','variableName','Descriptions','keyType','Variable','Fields','nameField','customField','../../client','getServicenowAccounts','GetServicenowAccount'];(function(_0x565c73,_0x15fdb7){var _0x1148b4=function(_0xa4836c){while(--_0xa4836c){_0x565c73['push'](_0x565c73['shift']());}};_0x1148b4(++_0x15fdb7);}(_0x00bb,0x1d8));var _0xb00b=function(_0x56482c,_0x16118d){_0x56482c=_0x56482c-0x0;var _0x5aae7a=_0x00bb[_0x56482c];return _0x5aae7a;};'use strict';var client=require(_0xb00b('0x0'));exports[_0xb00b('0x1')]=function(){return function(_0x468a51){return client['Request'](_0xb00b('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xb00b('0x3'),_0xb00b('0x4'),'password',_0xb00b('0x5'),_0xb00b('0x6'),'serverUrl'],'include':[{'model':'ServicenowConfiguration','as':'Configurations','attributes':['id',_0xb00b('0x7')],'include':[{'model':_0xb00b('0x8'),'as':_0xb00b('0x9'),'attributes':['id',_0xb00b('0xa'),_0xb00b('0xb'),_0xb00b('0xc')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xb00b('0x7')]}]},{'model':_0xb00b('0x8'),'as':_0xb00b('0xd'),'attributes':['id',_0xb00b('0xa'),_0xb00b('0xb'),'key',_0xb00b('0xe'),'keyContent','variableName'],'include':[{'model':'Variable','as':_0xb00b('0xf'),'attributes':['id',_0xb00b('0x7')]}]},{'model':_0xb00b('0x8'),'as':_0xb00b('0x10'),'attributes':['id',_0xb00b('0xa'),_0xb00b('0xb'),'idField',_0xb00b('0x11'),_0xb00b('0x12'),'variableName'],'include':[{'model':_0xb00b('0xf'),'as':_0xb00b('0xf'),'attributes':['id','name']}]}]}]},'log':'GetServicenowkAccount'});};};