06cf1afbf173d17e392513a966c956ad8a4ee34b
[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 _0xa062=['Descriptions','keyContent','Fields','content','idField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','name','username','apiKey','serverUrl','Tag','FreshdeskField','Subjects','type','variableName','Variable'];(function(_0xc8a02c,_0x4809d3){var _0x3d89da=function(_0x5903d8){while(--_0x5903d8){_0xc8a02c['push'](_0xc8a02c['shift']());}};_0x3d89da(++_0x4809d3);}(_0xa062,0x101));var _0x2a06=function(_0x371631,_0x57436c){_0x371631=_0x371631-0x0;var _0x34f09e=_0xa062[_0x371631];return _0x34f09e;};'use strict';var client=require(_0x2a06('0x0'));exports[_0x2a06('0x1')]=function(){return function(_0x1cf898){return client['Request'](_0x2a06('0x2'),{'options':{'raw':![],'attributes':['id',_0x2a06('0x3'),_0x2a06('0x4'),_0x2a06('0x5'),'remoteUri',_0x2a06('0x6')],'include':[{'model':'FreshdeskConfiguration','as':'Configurations','attributes':['id',_0x2a06('0x3')],'include':[{'model':_0x2a06('0x7'),'attributes':['id',_0x2a06('0x3')]},{'model':_0x2a06('0x8'),'as':_0x2a06('0x9'),'attributes':['id',_0x2a06('0xa'),'content',_0x2a06('0xb')],'include':[{'model':_0x2a06('0xc'),'as':'Variable','attributes':['id',_0x2a06('0x3')]}]},{'model':_0x2a06('0x8'),'as':_0x2a06('0xd'),'attributes':['id','type','content','key','keyType',_0x2a06('0xe'),_0x2a06('0xb')],'include':[{'model':'Variable','as':_0x2a06('0xc'),'attributes':['id',_0x2a06('0x3')]}]},{'model':_0x2a06('0x8'),'as':_0x2a06('0xf'),'attributes':['id',_0x2a06('0xa'),_0x2a06('0x10'),_0x2a06('0x11'),'nameField','customField',_0x2a06('0xb')],'include':[{'model':_0x2a06('0xc'),'as':'Variable','attributes':['id',_0x2a06('0x3')]}]}]}]},'log':_0x2a06('0x2')});};};