Built motion from commit 00bf23f6.|2.6.16
[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 _0x4819=['GetServicenowAccount','name','description','username','password','email','remoteUri','ServicenowConfiguration','ServicenowField','Subjects','type','content','variableName','Variable','key','keyType','keyContent','idField','nameField','customField','GetServicenowkAccount','getServicenowAccounts','Request'];(function(_0x9cc1d7,_0x126bd4){var _0x294e87=function(_0x272bd3){while(--_0x272bd3){_0x9cc1d7['push'](_0x9cc1d7['shift']());}};_0x294e87(++_0x126bd4);}(_0x4819,0xcd));var _0x9481=function(_0x5068d5,_0x353c3d){_0x5068d5=_0x5068d5-0x0;var _0x22123e=_0x4819[_0x5068d5];return _0x22123e;};'use strict';var client=require('../../client');exports[_0x9481('0x0')]=function(){return function(_0x3307b0){return client[_0x9481('0x1')](_0x9481('0x2'),{'options':{'raw':![],'attributes':['id',_0x9481('0x3'),_0x9481('0x4'),_0x9481('0x5'),_0x9481('0x6'),_0x9481('0x7'),_0x9481('0x8'),'serverUrl'],'include':[{'model':_0x9481('0x9'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x9481('0xa'),'as':_0x9481('0xb'),'attributes':['id',_0x9481('0xc'),_0x9481('0xd'),_0x9481('0xe')],'include':[{'model':'Variable','as':_0x9481('0xf'),'attributes':['id','name']}]},{'model':_0x9481('0xa'),'as':'Descriptions','attributes':['id',_0x9481('0xc'),_0x9481('0xd'),_0x9481('0x10'),_0x9481('0x11'),_0x9481('0x12'),_0x9481('0xe')],'include':[{'model':_0x9481('0xf'),'as':_0x9481('0xf'),'attributes':['id',_0x9481('0x3')]}]},{'model':'ServicenowField','as':'Fields','attributes':['id',_0x9481('0xc'),_0x9481('0xd'),_0x9481('0x13'),_0x9481('0x14'),_0x9481('0x15'),_0x9481('0xe')],'include':[{'model':_0x9481('0xf'),'as':'Variable','attributes':['id',_0x9481('0x3')]}]}]}]},'log':_0x9481('0x16')});};};