31c4260e7624270d98588a4d529d599a7fcb83c9
[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 _0x98a8=['GetServicenowkAccount','../../client','getServicenowAccounts','Request','GetServicenowAccount','name','description','password','email','remoteUri','serverUrl','ServicenowConfiguration','Subjects','content','variableName','Variable','ServicenowField','Descriptions','type','keyType','idField','nameField','customField'];(function(_0x423c94,_0x2145a0){var _0x2ae9cb=function(_0x3f12aa){while(--_0x3f12aa){_0x423c94['push'](_0x423c94['shift']());}};_0x2ae9cb(++_0x2145a0);}(_0x98a8,0x12c));var _0x898a=function(_0x7c940a,_0x104a64){_0x7c940a=_0x7c940a-0x0;var _0x35f64e=_0x98a8[_0x7c940a];return _0x35f64e;};'use strict';var client=require(_0x898a('0x0'));exports[_0x898a('0x1')]=function(){return function(_0x3c1d2d){return client[_0x898a('0x2')](_0x898a('0x3'),{'options':{'raw':![],'attributes':['id',_0x898a('0x4'),_0x898a('0x5'),'username',_0x898a('0x6'),_0x898a('0x7'),_0x898a('0x8'),_0x898a('0x9')],'include':[{'model':_0x898a('0xa'),'as':'Configurations','attributes':['id',_0x898a('0x4')],'include':[{'model':'ServicenowField','as':_0x898a('0xb'),'attributes':['id','type',_0x898a('0xc'),_0x898a('0xd')],'include':[{'model':_0x898a('0xe'),'as':_0x898a('0xe'),'attributes':['id',_0x898a('0x4')]}]},{'model':_0x898a('0xf'),'as':_0x898a('0x10'),'attributes':['id',_0x898a('0x11'),_0x898a('0xc'),'key',_0x898a('0x12'),'keyContent',_0x898a('0xd')],'include':[{'model':'Variable','as':_0x898a('0xe'),'attributes':['id',_0x898a('0x4')]}]},{'model':_0x898a('0xf'),'as':'Fields','attributes':['id','type','content',_0x898a('0x13'),_0x898a('0x14'),_0x898a('0x15'),_0x898a('0xd')],'include':[{'model':_0x898a('0xe'),'as':_0x898a('0xe'),'attributes':['id','name']}]}]}]},'log':_0x898a('0x16')});};};