1661b5d4c604b1831548234ccc5970a08f0d8cab
[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 _0x9957=['remoteUri','serverUrl','ServicenowConfiguration','Configurations','ServicenowField','type','content','Variable','Descriptions','keyType','keyContent','Fields','customField','variableName','GetServicenowkAccount','../../client','getServicenowAccounts','Request','name','description','username','password'];(function(_0x4e676e,_0x2a7c6d){var _0x336a3c=function(_0x4767c4){while(--_0x4767c4){_0x4e676e['push'](_0x4e676e['shift']());}};_0x336a3c(++_0x2a7c6d);}(_0x9957,0x93));var _0x7995=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0x9957[_0x3b380d];return _0x54502b;};'use strict';var client=require(_0x7995('0x0'));exports[_0x7995('0x1')]=function(){return function(_0x2722a3){return client[_0x7995('0x2')]('GetServicenowAccount',{'options':{'raw':![],'attributes':['id',_0x7995('0x3'),_0x7995('0x4'),_0x7995('0x5'),_0x7995('0x6'),'email',_0x7995('0x7'),_0x7995('0x8')],'include':[{'model':_0x7995('0x9'),'as':_0x7995('0xa'),'attributes':['id',_0x7995('0x3')],'include':[{'model':_0x7995('0xb'),'as':'Subjects','attributes':['id',_0x7995('0xc'),_0x7995('0xd'),'variableName'],'include':[{'model':_0x7995('0xe'),'as':_0x7995('0xe'),'attributes':['id',_0x7995('0x3')]}]},{'model':_0x7995('0xb'),'as':_0x7995('0xf'),'attributes':['id',_0x7995('0xc'),_0x7995('0xd'),'key',_0x7995('0x10'),_0x7995('0x11'),'variableName'],'include':[{'model':_0x7995('0xe'),'as':_0x7995('0xe'),'attributes':['id',_0x7995('0x3')]}]},{'model':_0x7995('0xb'),'as':_0x7995('0x12'),'attributes':['id',_0x7995('0xc'),_0x7995('0xd'),'idField','nameField',_0x7995('0x13'),_0x7995('0x14')],'include':[{'model':_0x7995('0xe'),'as':_0x7995('0xe'),'attributes':['id',_0x7995('0x3')]}]}]}]},'log':_0x7995('0x15')});};};