Built motion from commit b5413ace.|2.6.9
[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 _0x1261=['content','variableName','Variable','ServicenowField','Descriptions','keyContent','Fields','idField','nameField','getServicenowAccounts','Request','GetServicenowAccount','name','description','username','password','email','remoteUri','Configurations','Subjects','type'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x1261,0x144));var _0x1126=function(_0x13d07a,_0x41efc3){_0x13d07a=_0x13d07a-0x0;var _0x5ee0ee=_0x1261[_0x13d07a];return _0x5ee0ee;};'use strict';var client=require('../../client');exports[_0x1126('0x0')]=function(){return function(_0x26c6a0){return client[_0x1126('0x1')](_0x1126('0x2'),{'options':{'raw':![],'attributes':['id',_0x1126('0x3'),_0x1126('0x4'),_0x1126('0x5'),_0x1126('0x6'),_0x1126('0x7'),_0x1126('0x8'),'serverUrl'],'include':[{'model':'ServicenowConfiguration','as':_0x1126('0x9'),'attributes':['id',_0x1126('0x3')],'include':[{'model':'ServicenowField','as':_0x1126('0xa'),'attributes':['id',_0x1126('0xb'),_0x1126('0xc'),_0x1126('0xd')],'include':[{'model':_0x1126('0xe'),'as':'Variable','attributes':['id',_0x1126('0x3')]}]},{'model':_0x1126('0xf'),'as':_0x1126('0x10'),'attributes':['id','type',_0x1126('0xc'),'key','keyType',_0x1126('0x11'),'variableName'],'include':[{'model':_0x1126('0xe'),'as':_0x1126('0xe'),'attributes':['id',_0x1126('0x3')]}]},{'model':_0x1126('0xf'),'as':_0x1126('0x12'),'attributes':['id',_0x1126('0xb'),_0x1126('0xc'),_0x1126('0x13'),_0x1126('0x14'),'customField','variableName'],'include':[{'model':_0x1126('0xe'),'as':_0x1126('0xe'),'attributes':['id',_0x1126('0x3')]}]}]}]},'log':'GetServicenowkAccount'});};};