Built motion from commit (unavailable).|2.4.18
[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 _0x34e8=['nameField','../../client','getServicenowAccounts','Request','name','description','username','password','email','remoteUri','serverUrl','Configurations','ServicenowField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','idField'];(function(_0x117cbc,_0x2d7c59){var _0xa7db65=function(_0x2957af){while(--_0x2957af){_0x117cbc['push'](_0x117cbc['shift']());}};_0xa7db65(++_0x2d7c59);}(_0x34e8,0x12c));var _0x834e=function(_0x318776,_0x22055d){_0x318776=_0x318776-0x0;var _0xf0cace=_0x34e8[_0x318776];return _0xf0cace;};'use strict';var client=require(_0x834e('0x0'));exports[_0x834e('0x1')]=function(){return function(_0x8b339){return client[_0x834e('0x2')]('GetServicenowAccount',{'options':{'raw':![],'attributes':['id',_0x834e('0x3'),_0x834e('0x4'),_0x834e('0x5'),_0x834e('0x6'),_0x834e('0x7'),_0x834e('0x8'),_0x834e('0x9')],'include':[{'model':'ServicenowConfiguration','as':_0x834e('0xa'),'attributes':['id','name'],'include':[{'model':_0x834e('0xb'),'as':_0x834e('0xc'),'attributes':['id',_0x834e('0xd'),_0x834e('0xe'),_0x834e('0xf')],'include':[{'model':_0x834e('0x10'),'as':_0x834e('0x10'),'attributes':['id',_0x834e('0x3')]}]},{'model':_0x834e('0xb'),'as':_0x834e('0x11'),'attributes':['id',_0x834e('0xd'),_0x834e('0xe'),_0x834e('0x12'),_0x834e('0x13'),_0x834e('0x14'),_0x834e('0xf')],'include':[{'model':_0x834e('0x10'),'as':'Variable','attributes':['id',_0x834e('0x3')]}]},{'model':_0x834e('0xb'),'as':'Fields','attributes':['id',_0x834e('0xd'),_0x834e('0xe'),_0x834e('0x15'),_0x834e('0x16'),'customField',_0x834e('0xf')],'include':[{'model':_0x834e('0x10'),'as':'Variable','attributes':['id',_0x834e('0x3')]}]}]}]},'log':'GetServicenowkAccount'});};};