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