8e4eeff64a2a67a4a450e23dec7614c4d87d6b61
[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 _0xbe73=['remoteUri','serverUrl','FreshdeskConfiguration','Configurations','FreshdeskField','variableName','Variable','Descriptions','content','keyType','Fields','type','idField','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey'];(function(_0x489d1e,_0x5185f5){var _0x45bb3d=function(_0x5387f7){while(--_0x5387f7){_0x489d1e['push'](_0x489d1e['shift']());}};_0x45bb3d(++_0x5185f5);}(_0xbe73,0xa5));var _0x3be7=function(_0x7791d5,_0xdab65f){_0x7791d5=_0x7791d5-0x0;var _0x5ce288=_0xbe73[_0x7791d5];return _0x5ce288;};'use strict';var client=require('../../client');exports[_0x3be7('0x0')]=function(){return function(_0x5a3016){return client[_0x3be7('0x1')](_0x3be7('0x2'),{'options':{'raw':![],'attributes':['id',_0x3be7('0x3'),_0x3be7('0x4'),_0x3be7('0x5'),_0x3be7('0x6'),_0x3be7('0x7')],'include':[{'model':_0x3be7('0x8'),'as':_0x3be7('0x9'),'attributes':['id',_0x3be7('0x3')],'include':[{'model':'Tag','attributes':['id',_0x3be7('0x3')]},{'model':_0x3be7('0xa'),'as':'Subjects','attributes':['id','type','content',_0x3be7('0xb')],'include':[{'model':_0x3be7('0xc'),'as':_0x3be7('0xc'),'attributes':['id','name']}]},{'model':_0x3be7('0xa'),'as':_0x3be7('0xd'),'attributes':['id','type',_0x3be7('0xe'),'key',_0x3be7('0xf'),'keyContent',_0x3be7('0xb')],'include':[{'model':_0x3be7('0xc'),'as':_0x3be7('0xc'),'attributes':['id',_0x3be7('0x3')]}]},{'model':'FreshdeskField','as':_0x3be7('0x10'),'attributes':['id',_0x3be7('0x11'),_0x3be7('0xe'),_0x3be7('0x12'),'nameField','customField',_0x3be7('0xb')],'include':[{'model':_0x3be7('0xc'),'as':_0x3be7('0xc'),'attributes':['id',_0x3be7('0x3')]}]}]}]},'log':_0x3be7('0x2')});};};