Built motion from commit (unavailable).|2.5.2
[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 _0x4a35=['Descriptions','key','keyContent','Fields','idField','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','remoteUri','serverUrl','Tag','FreshdeskField','Subjects','type','content','variableName','Variable'];(function(_0x5a66f3,_0x4459d3){var _0x360e8b=function(_0x13a644){while(--_0x13a644){_0x5a66f3['push'](_0x5a66f3['shift']());}};_0x360e8b(++_0x4459d3);}(_0x4a35,0xcd));var _0x54a3=function(_0x301038,_0x5f5e0d){_0x301038=_0x301038-0x0;var _0x43aad3=_0x4a35[_0x301038];return _0x43aad3;};'use strict';var client=require(_0x54a3('0x0'));exports[_0x54a3('0x1')]=function(){return function(_0x5c456a){return client[_0x54a3('0x2')](_0x54a3('0x3'),{'options':{'raw':![],'attributes':['id',_0x54a3('0x4'),_0x54a3('0x5'),'apiKey',_0x54a3('0x6'),_0x54a3('0x7')],'include':[{'model':'FreshdeskConfiguration','as':'Configurations','attributes':['id',_0x54a3('0x4')],'include':[{'model':_0x54a3('0x8'),'attributes':['id',_0x54a3('0x4')]},{'model':_0x54a3('0x9'),'as':_0x54a3('0xa'),'attributes':['id',_0x54a3('0xb'),_0x54a3('0xc'),_0x54a3('0xd')],'include':[{'model':_0x54a3('0xe'),'as':'Variable','attributes':['id',_0x54a3('0x4')]}]},{'model':_0x54a3('0x9'),'as':_0x54a3('0xf'),'attributes':['id',_0x54a3('0xb'),_0x54a3('0xc'),_0x54a3('0x10'),'keyType',_0x54a3('0x11'),_0x54a3('0xd')],'include':[{'model':_0x54a3('0xe'),'as':_0x54a3('0xe'),'attributes':['id',_0x54a3('0x4')]}]},{'model':'FreshdeskField','as':_0x54a3('0x12'),'attributes':['id',_0x54a3('0xb'),'content',_0x54a3('0x13'),_0x54a3('0x14'),_0x54a3('0x15'),_0x54a3('0xd')],'include':[{'model':_0x54a3('0xe'),'as':'Variable','attributes':['id',_0x54a3('0x4')]}]}]}]},'log':'GetFreshdeskAccount'});};};