fdc7685d3d41339e05a71c213a867c4779e8f7db
[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(_0x41992f,_0x396d52){var _0x3cce83=function(_0x1c41f8){while(--_0x1c41f8){_0x41992f['push'](_0x41992f['shift']());}};_0x3cce83(++_0x396d52);}(_0x98a8,0x12c));var _0x898a=function(_0x55d3d0,_0x43d84c){_0x55d3d0=_0x55d3d0-0x0;var _0x55377d=_0x98a8[_0x55d3d0];return _0x55377d;};'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')});};};