03228e7feca4d9bb71323120c99b1ac62b246e9d
[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 _0x8ef6=['nameField','customField','../../client','getServicenowAccounts','Request','GetServicenowAccount','name','description','password','email','remoteUri','serverUrl','ServicenowField','Subjects','content','variableName','Variable','Descriptions','type','key','keyType','keyContent','Fields','idField'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x8ef6,0xf2));var _0x68ef=function(_0x2127cb,_0x3a0193){_0x2127cb=_0x2127cb-0x0;var _0x259bfe=_0x8ef6[_0x2127cb];return _0x259bfe;};'use strict';var client=require(_0x68ef('0x0'));exports[_0x68ef('0x1')]=function(){return function(_0x10b258){return client[_0x68ef('0x2')](_0x68ef('0x3'),{'options':{'raw':![],'attributes':['id',_0x68ef('0x4'),_0x68ef('0x5'),'username',_0x68ef('0x6'),_0x68ef('0x7'),_0x68ef('0x8'),_0x68ef('0x9')],'include':[{'model':'ServicenowConfiguration','as':'Configurations','attributes':['id',_0x68ef('0x4')],'include':[{'model':_0x68ef('0xa'),'as':_0x68ef('0xb'),'attributes':['id','type',_0x68ef('0xc'),_0x68ef('0xd')],'include':[{'model':_0x68ef('0xe'),'as':_0x68ef('0xe'),'attributes':['id',_0x68ef('0x4')]}]},{'model':_0x68ef('0xa'),'as':_0x68ef('0xf'),'attributes':['id',_0x68ef('0x10'),_0x68ef('0xc'),_0x68ef('0x11'),_0x68ef('0x12'),_0x68ef('0x13'),'variableName'],'include':[{'model':_0x68ef('0xe'),'as':_0x68ef('0xe'),'attributes':['id',_0x68ef('0x4')]}]},{'model':_0x68ef('0xa'),'as':_0x68ef('0x14'),'attributes':['id',_0x68ef('0x10'),'content',_0x68ef('0x15'),_0x68ef('0x16'),_0x68ef('0x17'),'variableName'],'include':[{'model':_0x68ef('0xe'),'as':_0x68ef('0xe'),'attributes':['id',_0x68ef('0x4')]}]}]}]},'log':'GetServicenowkAccount'});};};