Built motion from commit 52c8a02d.|2.6.29
[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 _0x3f72=['FreshdeskField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','Fields','idField','nameField','customField','GetFreshdeskAccount','../../client','getFreshdeskAccounts','name','username','apiKey','remoteUri','serverUrl','Configurations','Tag'];(function(_0x145bd4,_0x5bb18e){var _0x38b192=function(_0x4020f2){while(--_0x4020f2){_0x145bd4['push'](_0x145bd4['shift']());}};_0x38b192(++_0x5bb18e);}(_0x3f72,0xaf));var _0x23f7=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x3f72[_0x14add3];return _0x4a174f;};'use strict';var client=require(_0x23f7('0x0'));exports[_0x23f7('0x1')]=function(){return function(_0x1d5a1f){return client['Request']('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x23f7('0x2'),_0x23f7('0x3'),_0x23f7('0x4'),_0x23f7('0x5'),_0x23f7('0x6')],'include':[{'model':'FreshdeskConfiguration','as':_0x23f7('0x7'),'attributes':['id','name'],'include':[{'model':_0x23f7('0x8'),'attributes':['id','name']},{'model':_0x23f7('0x9'),'as':_0x23f7('0xa'),'attributes':['id',_0x23f7('0xb'),_0x23f7('0xc'),_0x23f7('0xd')],'include':[{'model':_0x23f7('0xe'),'as':_0x23f7('0xe'),'attributes':['id',_0x23f7('0x2')]}]},{'model':_0x23f7('0x9'),'as':_0x23f7('0xf'),'attributes':['id','type',_0x23f7('0xc'),_0x23f7('0x10'),_0x23f7('0x11'),'keyContent','variableName'],'include':[{'model':_0x23f7('0xe'),'as':_0x23f7('0xe'),'attributes':['id',_0x23f7('0x2')]}]},{'model':_0x23f7('0x9'),'as':_0x23f7('0x12'),'attributes':['id','type',_0x23f7('0xc'),_0x23f7('0x13'),_0x23f7('0x14'),_0x23f7('0x15'),'variableName'],'include':[{'model':_0x23f7('0xe'),'as':_0x23f7('0xe'),'attributes':['id',_0x23f7('0x2')]}]}]}]},'log':_0x23f7('0x16')});};};