777c21130efd0173f65df6ca1b9fbfd6333d6138
[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 _0x46ed=['../../client','getServicenowAccounts','Request','GetServicenowAccount','name','username','password','remoteUri','serverUrl','ServicenowConfiguration','Configurations','ServicenowField','Subjects','type','content','variableName','Variable','key','keyType','keyContent','Fields','nameField','customField','GetServicenowkAccount'];(function(_0x4ed25a,_0x5a28b3){var _0x34ad4f=function(_0x310c01){while(--_0x310c01){_0x4ed25a['push'](_0x4ed25a['shift']());}};_0x34ad4f(++_0x5a28b3);}(_0x46ed,0x168));var _0xd46e=function(_0x46698a,_0x8de1e4){_0x46698a=_0x46698a-0x0;var _0x356db0=_0x46ed[_0x46698a];return _0x356db0;};'use strict';var client=require(_0xd46e('0x0'));exports[_0xd46e('0x1')]=function(){return function(_0x493012){return client[_0xd46e('0x2')](_0xd46e('0x3'),{'options':{'raw':![],'attributes':['id',_0xd46e('0x4'),'description',_0xd46e('0x5'),_0xd46e('0x6'),'email',_0xd46e('0x7'),_0xd46e('0x8')],'include':[{'model':_0xd46e('0x9'),'as':_0xd46e('0xa'),'attributes':['id',_0xd46e('0x4')],'include':[{'model':_0xd46e('0xb'),'as':_0xd46e('0xc'),'attributes':['id',_0xd46e('0xd'),_0xd46e('0xe'),_0xd46e('0xf')],'include':[{'model':_0xd46e('0x10'),'as':'Variable','attributes':['id',_0xd46e('0x4')]}]},{'model':_0xd46e('0xb'),'as':'Descriptions','attributes':['id',_0xd46e('0xd'),_0xd46e('0xe'),_0xd46e('0x11'),_0xd46e('0x12'),_0xd46e('0x13'),_0xd46e('0xf')],'include':[{'model':'Variable','as':_0xd46e('0x10'),'attributes':['id','name']}]},{'model':'ServicenowField','as':_0xd46e('0x14'),'attributes':['id',_0xd46e('0xd'),'content','idField',_0xd46e('0x15'),_0xd46e('0x16'),_0xd46e('0xf')],'include':[{'model':_0xd46e('0x10'),'as':'Variable','attributes':['id',_0xd46e('0x4')]}]}]}]},'log':_0xd46e('0x17')});};};