Built motion from commit 3c2ce842.|2.6.31
[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 _0xb2af=['Fields','nameField','GetFreshdeskAccount','../../client','getFreshdeskAccounts','Request','name','username','apiKey','remoteUri','serverUrl','Configurations','Tag','FreshdeskField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent'];(function(_0x1b2050,_0x309da3){var _0xb5643c=function(_0x55cc90){while(--_0x55cc90){_0x1b2050['push'](_0x1b2050['shift']());}};_0xb5643c(++_0x309da3);}(_0xb2af,0xd2));var _0xfb2a=function(_0x4c3730,_0x1e071d){_0x4c3730=_0x4c3730-0x0;var _0x56330a=_0xb2af[_0x4c3730];return _0x56330a;};'use strict';var client=require(_0xfb2a('0x0'));exports[_0xfb2a('0x1')]=function(){return function(_0xf5c2e0){return client[_0xfb2a('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0xfb2a('0x3'),_0xfb2a('0x4'),_0xfb2a('0x5'),_0xfb2a('0x6'),_0xfb2a('0x7')],'include':[{'model':'FreshdeskConfiguration','as':_0xfb2a('0x8'),'attributes':['id',_0xfb2a('0x3')],'include':[{'model':_0xfb2a('0x9'),'attributes':['id','name']},{'model':_0xfb2a('0xa'),'as':_0xfb2a('0xb'),'attributes':['id',_0xfb2a('0xc'),_0xfb2a('0xd'),_0xfb2a('0xe')],'include':[{'model':_0xfb2a('0xf'),'as':_0xfb2a('0xf'),'attributes':['id',_0xfb2a('0x3')]}]},{'model':_0xfb2a('0xa'),'as':_0xfb2a('0x10'),'attributes':['id',_0xfb2a('0xc'),_0xfb2a('0xd'),_0xfb2a('0x11'),_0xfb2a('0x12'),_0xfb2a('0x13'),_0xfb2a('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0xfb2a('0xa'),'as':_0xfb2a('0x14'),'attributes':['id',_0xfb2a('0xc'),_0xfb2a('0xd'),'idField',_0xfb2a('0x15'),'customField','variableName'],'include':[{'model':_0xfb2a('0xf'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0xfb2a('0x16')});};};