Built motion from commit (unavailable).|2.5.14
[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 _0x249d=['Fields','nameField','customField','GetFreshdeskAccount','Request','name','username','apiKey','remoteUri','serverUrl','Configurations','Tag','FreshdeskField','Subjects','type','variableName','Variable','content','key','keyType','keyContent'];(function(_0x3ace66,_0x3046bb){var _0x4f8374=function(_0x3113b5){while(--_0x3113b5){_0x3ace66['push'](_0x3ace66['shift']());}};_0x4f8374(++_0x3046bb);}(_0x249d,0x12a));var _0xd249=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x249d[_0x20a584];return _0x4b41a8;};'use strict';var client=require('../../client');exports['getFreshdeskAccounts']=function(){return function(_0x32186f){return client[_0xd249('0x0')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0xd249('0x1'),_0xd249('0x2'),_0xd249('0x3'),_0xd249('0x4'),_0xd249('0x5')],'include':[{'model':'FreshdeskConfiguration','as':_0xd249('0x6'),'attributes':['id',_0xd249('0x1')],'include':[{'model':_0xd249('0x7'),'attributes':['id',_0xd249('0x1')]},{'model':_0xd249('0x8'),'as':_0xd249('0x9'),'attributes':['id',_0xd249('0xa'),'content',_0xd249('0xb')],'include':[{'model':'Variable','as':_0xd249('0xc'),'attributes':['id','name']}]},{'model':'FreshdeskField','as':'Descriptions','attributes':['id',_0xd249('0xa'),_0xd249('0xd'),_0xd249('0xe'),_0xd249('0xf'),_0xd249('0x10'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xd249('0x1')]}]},{'model':_0xd249('0x8'),'as':_0xd249('0x11'),'attributes':['id',_0xd249('0xa'),'content','idField',_0xd249('0x12'),_0xd249('0x13'),'variableName'],'include':[{'model':_0xd249('0xc'),'as':_0xd249('0xc'),'attributes':['id',_0xd249('0x1')]}]}]}]},'log':_0xd249('0x14')});};};