Built motion from commit (unavailable).|2.4.18
[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 _0x711c=['keyContent','Fields','type','idField','nameField','customField','GetFreshdeskAccount','name','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects','content','variableName','Variable','Descriptions','key','keyType'];(function(_0x290b39,_0x2dfc19){var _0x381b69=function(_0x382402){while(--_0x382402){_0x290b39['push'](_0x290b39['shift']());}};_0x381b69(++_0x2dfc19);}(_0x711c,0x8a));var _0xc711=function(_0x149319,_0x4182b5){_0x149319=_0x149319-0x0;var _0x4637c9=_0x711c[_0x149319];return _0x4637c9;};'use strict';var client=require('../../client');exports['getFreshdeskAccounts']=function(){return function(_0x2dad2d){return client['Request'](_0xc711('0x0'),{'options':{'raw':![],'attributes':['id',_0xc711('0x1'),'username',_0xc711('0x2'),_0xc711('0x3'),_0xc711('0x4')],'include':[{'model':_0xc711('0x5'),'as':_0xc711('0x6'),'attributes':['id',_0xc711('0x1')],'include':[{'model':_0xc711('0x7'),'attributes':['id','name']},{'model':_0xc711('0x8'),'as':_0xc711('0x9'),'attributes':['id','type',_0xc711('0xa'),_0xc711('0xb')],'include':[{'model':_0xc711('0xc'),'as':_0xc711('0xc'),'attributes':['id','name']}]},{'model':_0xc711('0x8'),'as':_0xc711('0xd'),'attributes':['id','type',_0xc711('0xa'),_0xc711('0xe'),_0xc711('0xf'),_0xc711('0x10'),_0xc711('0xb')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xc711('0x1')]}]},{'model':'FreshdeskField','as':_0xc711('0x11'),'attributes':['id',_0xc711('0x12'),_0xc711('0xa'),_0xc711('0x13'),_0xc711('0x14'),_0xc711('0x15'),_0xc711('0xb')],'include':[{'model':_0xc711('0xc'),'as':_0xc711('0xc'),'attributes':['id',_0xc711('0x1')]}]}]}]},'log':_0xc711('0x0')});};};