Built motion from commit e8da49ee.|2.6.33
[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 _0x6c9f=['content','variableName','Variable','Descriptions','key','keyType','keyContent','idField','nameField','customField','../../client','GetFreshdeskAccount','name','username','apiKey','remoteUri','serverUrl','Configurations','Tag','FreshdeskField','Subjects','type'];(function(_0xf1a208,_0x4c9c5f){var _0x4b4d76=function(_0x1ad51d){while(--_0x1ad51d){_0xf1a208['push'](_0xf1a208['shift']());}};_0x4b4d76(++_0x4c9c5f);}(_0x6c9f,0x16a));var _0xf6c9=function(_0x2597c3,_0x32be09){_0x2597c3=_0x2597c3-0x0;var _0x1792b7=_0x6c9f[_0x2597c3];return _0x1792b7;};'use strict';var client=require(_0xf6c9('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x434274){return client['Request'](_0xf6c9('0x1'),{'options':{'raw':![],'attributes':['id',_0xf6c9('0x2'),_0xf6c9('0x3'),_0xf6c9('0x4'),_0xf6c9('0x5'),_0xf6c9('0x6')],'include':[{'model':'FreshdeskConfiguration','as':_0xf6c9('0x7'),'attributes':['id',_0xf6c9('0x2')],'include':[{'model':_0xf6c9('0x8'),'attributes':['id',_0xf6c9('0x2')]},{'model':_0xf6c9('0x9'),'as':_0xf6c9('0xa'),'attributes':['id',_0xf6c9('0xb'),_0xf6c9('0xc'),_0xf6c9('0xd')],'include':[{'model':'Variable','as':_0xf6c9('0xe'),'attributes':['id',_0xf6c9('0x2')]}]},{'model':_0xf6c9('0x9'),'as':_0xf6c9('0xf'),'attributes':['id',_0xf6c9('0xb'),_0xf6c9('0xc'),_0xf6c9('0x10'),_0xf6c9('0x11'),_0xf6c9('0x12'),'variableName'],'include':[{'model':_0xf6c9('0xe'),'as':_0xf6c9('0xe'),'attributes':['id',_0xf6c9('0x2')]}]},{'model':_0xf6c9('0x9'),'as':'Fields','attributes':['id','type',_0xf6c9('0xc'),_0xf6c9('0x13'),_0xf6c9('0x14'),_0xf6c9('0x15'),_0xf6c9('0xd')],'include':[{'model':_0xf6c9('0xe'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0xf6c9('0x1')});};};