37456a408720b37e5300aafa586775c242f36c7f
[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 _0x1ca7=['key','keyType','keyContent','Fields','idField','nameField','customField','../../client','getFreshdeskAccounts','name','username','apiKey','serverUrl','FreshdeskConfiguration','Tag','FreshdeskField','Subjects','content','variableName','Variable','type'];(function(_0xcd155e,_0x722cde){var _0x2f0deb=function(_0x2b4465){while(--_0x2b4465){_0xcd155e['push'](_0xcd155e['shift']());}};_0x2f0deb(++_0x722cde);}(_0x1ca7,0x157));var _0x71ca=function(_0x6c993a,_0x5ea3ab){_0x6c993a=_0x6c993a-0x0;var _0x27f547=_0x1ca7[_0x6c993a];return _0x27f547;};'use strict';var client=require(_0x71ca('0x0'));exports[_0x71ca('0x1')]=function(){return function(_0x4e69ff){return client['Request']('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x71ca('0x2'),_0x71ca('0x3'),_0x71ca('0x4'),'remoteUri',_0x71ca('0x5')],'include':[{'model':_0x71ca('0x6'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x71ca('0x7'),'attributes':['id',_0x71ca('0x2')]},{'model':_0x71ca('0x8'),'as':_0x71ca('0x9'),'attributes':['id','type',_0x71ca('0xa'),_0x71ca('0xb')],'include':[{'model':'Variable','as':_0x71ca('0xc'),'attributes':['id',_0x71ca('0x2')]}]},{'model':_0x71ca('0x8'),'as':'Descriptions','attributes':['id',_0x71ca('0xd'),_0x71ca('0xa'),_0x71ca('0xe'),_0x71ca('0xf'),_0x71ca('0x10'),_0x71ca('0xb')],'include':[{'model':'Variable','as':_0x71ca('0xc'),'attributes':['id',_0x71ca('0x2')]}]},{'model':'FreshdeskField','as':_0x71ca('0x11'),'attributes':['id',_0x71ca('0xd'),_0x71ca('0xa'),_0x71ca('0x12'),_0x71ca('0x13'),_0x71ca('0x14'),_0x71ca('0xb')],'include':[{'model':_0x71ca('0xc'),'as':_0x71ca('0xc'),'attributes':['id',_0x71ca('0x2')]}]}]}]},'log':'GetFreshdeskAccount'});};};