Built motion from commit (unavailable).|2.5.29
[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 _0x9a19=['GetServicenowkAccount','../../client','getServicenowAccounts','GetServicenowAccount','name','description','username','password','email','remoteUri','serverUrl','ServicenowConfiguration','Configurations','content','variableName','ServicenowField','Descriptions','type','keyType','keyContent','Variable','Fields','idField','nameField','customField'];(function(_0x1edd88,_0x304e0b){var _0xa8dca9=function(_0x3847b8){while(--_0x3847b8){_0x1edd88['push'](_0x1edd88['shift']());}};_0xa8dca9(++_0x304e0b);}(_0x9a19,0x114));var _0x99a1=function(_0x2d34d6,_0x397ff9){_0x2d34d6=_0x2d34d6-0x0;var _0x1d3d12=_0x9a19[_0x2d34d6];return _0x1d3d12;};'use strict';var client=require(_0x99a1('0x0'));exports[_0x99a1('0x1')]=function(){return function(_0x3d860b){return client['Request'](_0x99a1('0x2'),{'options':{'raw':![],'attributes':['id',_0x99a1('0x3'),_0x99a1('0x4'),_0x99a1('0x5'),_0x99a1('0x6'),_0x99a1('0x7'),_0x99a1('0x8'),_0x99a1('0x9')],'include':[{'model':_0x99a1('0xa'),'as':_0x99a1('0xb'),'attributes':['id',_0x99a1('0x3')],'include':[{'model':'ServicenowField','as':'Subjects','attributes':['id','type',_0x99a1('0xc'),_0x99a1('0xd')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x99a1('0x3')]}]},{'model':_0x99a1('0xe'),'as':_0x99a1('0xf'),'attributes':['id',_0x99a1('0x10'),_0x99a1('0xc'),'key',_0x99a1('0x11'),_0x99a1('0x12'),_0x99a1('0xd')],'include':[{'model':_0x99a1('0x13'),'as':_0x99a1('0x13'),'attributes':['id',_0x99a1('0x3')]}]},{'model':_0x99a1('0xe'),'as':_0x99a1('0x14'),'attributes':['id',_0x99a1('0x10'),_0x99a1('0xc'),_0x99a1('0x15'),_0x99a1('0x16'),_0x99a1('0x17'),_0x99a1('0xd')],'include':[{'model':_0x99a1('0x13'),'as':'Variable','attributes':['id',_0x99a1('0x3')]}]}]}]},'log':_0x99a1('0x18')});};};