32cbbb4a5fada5744b0250ff0f0a7d0e6d630535
[motion2.git] / server / services / ami / rpc / integrations / freshdesk.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 _0x6fa1=['content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','customField','../../client','GetFreshdeskAccount','name','apiKey','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects','type'];(function(_0x7e755b,_0x10a06a){var _0x4d2483=function(_0x4dd02e){while(--_0x4dd02e){_0x7e755b['push'](_0x7e755b['shift']());}};_0x4d2483(++_0x10a06a);}(_0x6fa1,0x73));var _0x16fa=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x6fa1[_0xa464c9];return _0x3d73c4;};'use strict';var client=require(_0x16fa('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x3efc74){return client['Request'](_0x16fa('0x1'),{'options':{'raw':![],'attributes':['id',_0x16fa('0x2'),'username',_0x16fa('0x3'),'remoteUri',_0x16fa('0x4')],'include':[{'model':_0x16fa('0x5'),'as':_0x16fa('0x6'),'attributes':['id',_0x16fa('0x2')],'include':[{'model':_0x16fa('0x7'),'attributes':['id','name']},{'model':_0x16fa('0x8'),'as':_0x16fa('0x9'),'attributes':['id',_0x16fa('0xa'),_0x16fa('0xb'),_0x16fa('0xc')],'include':[{'model':_0x16fa('0xd'),'as':_0x16fa('0xd'),'attributes':['id',_0x16fa('0x2')]}]},{'model':_0x16fa('0x8'),'as':_0x16fa('0xe'),'attributes':['id',_0x16fa('0xa'),_0x16fa('0xb'),_0x16fa('0xf'),_0x16fa('0x10'),_0x16fa('0x11'),'variableName'],'include':[{'model':_0x16fa('0xd'),'as':_0x16fa('0xd'),'attributes':['id',_0x16fa('0x2')]}]},{'model':'FreshdeskField','as':_0x16fa('0x12'),'attributes':['id',_0x16fa('0xa'),_0x16fa('0xb'),_0x16fa('0x13'),'nameField',_0x16fa('0x14'),_0x16fa('0xc')],'include':[{'model':_0x16fa('0xd'),'as':_0x16fa('0xd'),'attributes':['id',_0x16fa('0x2')]}]}]}]},'log':'GetFreshdeskAccount'});};};