299ccba5c483f9895c2a34adf9001fbb4be2b717
[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 _0xedd9=['Request','GetServicenowAccount','name','description','username','password','remoteUri','serverUrl','ServicenowConfiguration','Configurations','ServicenowField','type','content','variableName','Variable','Descriptions','key','keyType','Fields','nameField','customField','GetServicenowkAccount','getServicenowAccounts'];(function(_0x338825,_0x32e0a4){var _0x532adf=function(_0x4194df){while(--_0x4194df){_0x338825['push'](_0x338825['shift']());}};_0x532adf(++_0x32e0a4);}(_0xedd9,0xfc));var _0x9edd=function(_0x5b4f0f,_0x18e653){_0x5b4f0f=_0x5b4f0f-0x0;var _0xb1a86=_0xedd9[_0x5b4f0f];return _0xb1a86;};'use strict';var client=require('../../client');exports[_0x9edd('0x0')]=function(){return function(_0x2d7989){return client[_0x9edd('0x1')](_0x9edd('0x2'),{'options':{'raw':![],'attributes':['id',_0x9edd('0x3'),_0x9edd('0x4'),_0x9edd('0x5'),_0x9edd('0x6'),'email',_0x9edd('0x7'),_0x9edd('0x8')],'include':[{'model':_0x9edd('0x9'),'as':_0x9edd('0xa'),'attributes':['id','name'],'include':[{'model':_0x9edd('0xb'),'as':'Subjects','attributes':['id',_0x9edd('0xc'),_0x9edd('0xd'),_0x9edd('0xe')],'include':[{'model':_0x9edd('0xf'),'as':'Variable','attributes':['id',_0x9edd('0x3')]}]},{'model':'ServicenowField','as':_0x9edd('0x10'),'attributes':['id',_0x9edd('0xc'),'content',_0x9edd('0x11'),_0x9edd('0x12'),'keyContent',_0x9edd('0xe')],'include':[{'model':_0x9edd('0xf'),'as':_0x9edd('0xf'),'attributes':['id',_0x9edd('0x3')]}]},{'model':_0x9edd('0xb'),'as':_0x9edd('0x13'),'attributes':['id',_0x9edd('0xc'),_0x9edd('0xd'),'idField',_0x9edd('0x14'),_0x9edd('0x15'),_0x9edd('0xe')],'include':[{'model':_0x9edd('0xf'),'as':_0x9edd('0xf'),'attributes':['id',_0x9edd('0x3')]}]}]}]},'log':_0x9edd('0x16')});};};