Built motion from commit (unavailable).|2.4.20
[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 _0xb821=['Descriptions','key','keyType','keyContent','Fields','customField','GetServicenowkAccount','getServicenowAccounts','name','password','email','remoteUri','serverUrl','Configurations','ServicenowField','Subjects','type','content','variableName','Variable'];(function(_0x2cde74,_0x55cf68){var _0x39ee49=function(_0x1e312e){while(--_0x1e312e){_0x2cde74['push'](_0x2cde74['shift']());}};_0x39ee49(++_0x55cf68);}(_0xb821,0xa7));var _0x1b82=function(_0x58ca95,_0x2e7405){_0x58ca95=_0x58ca95-0x0;var _0x2c7c34=_0xb821[_0x58ca95];return _0x2c7c34;};'use strict';var client=require('../../client');exports[_0x1b82('0x0')]=function(){return function(_0x4f6190){return client['Request']('GetServicenowAccount',{'options':{'raw':![],'attributes':['id',_0x1b82('0x1'),'description','username',_0x1b82('0x2'),_0x1b82('0x3'),_0x1b82('0x4'),_0x1b82('0x5')],'include':[{'model':'ServicenowConfiguration','as':_0x1b82('0x6'),'attributes':['id',_0x1b82('0x1')],'include':[{'model':_0x1b82('0x7'),'as':_0x1b82('0x8'),'attributes':['id',_0x1b82('0x9'),_0x1b82('0xa'),_0x1b82('0xb')],'include':[{'model':_0x1b82('0xc'),'as':_0x1b82('0xc'),'attributes':['id','name']}]},{'model':_0x1b82('0x7'),'as':_0x1b82('0xd'),'attributes':['id',_0x1b82('0x9'),_0x1b82('0xa'),_0x1b82('0xe'),_0x1b82('0xf'),_0x1b82('0x10'),_0x1b82('0xb')],'include':[{'model':'Variable','as':_0x1b82('0xc'),'attributes':['id',_0x1b82('0x1')]}]},{'model':_0x1b82('0x7'),'as':_0x1b82('0x11'),'attributes':['id','type',_0x1b82('0xa'),'idField','nameField',_0x1b82('0x12'),'variableName'],'include':[{'model':_0x1b82('0xc'),'as':_0x1b82('0xc'),'attributes':['id','name']}]}]}]},'log':_0x1b82('0x13')});};};