Built motion from commit (unavailable).|2.4.18
[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 _0x0aa9=['content','Variable','FreshdeskField','Descriptions','key','keyType','keyContent','variableName','type','idField','customField','Request','GetFreshdeskAccount','username','serverUrl','FreshdeskConfiguration','name','Tag','Subjects'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0x0aa9,0x1ad));var _0x90aa=function(_0x205e5a,_0x5c19fb){_0x205e5a=_0x205e5a-0x0;var _0x10da58=_0x0aa9[_0x205e5a];return _0x10da58;};'use strict';var client=require('../../client');exports['getFreshdeskAccounts']=function(){return function(_0x1c8556){return client[_0x90aa('0x0')](_0x90aa('0x1'),{'options':{'raw':![],'attributes':['id','name',_0x90aa('0x2'),'apiKey','remoteUri',_0x90aa('0x3')],'include':[{'model':_0x90aa('0x4'),'as':'Configurations','attributes':['id',_0x90aa('0x5')],'include':[{'model':_0x90aa('0x6'),'attributes':['id',_0x90aa('0x5')]},{'model':'FreshdeskField','as':_0x90aa('0x7'),'attributes':['id','type',_0x90aa('0x8'),'variableName'],'include':[{'model':_0x90aa('0x9'),'as':_0x90aa('0x9'),'attributes':['id','name']}]},{'model':_0x90aa('0xa'),'as':_0x90aa('0xb'),'attributes':['id','type',_0x90aa('0x8'),_0x90aa('0xc'),_0x90aa('0xd'),_0x90aa('0xe'),_0x90aa('0xf')],'include':[{'model':_0x90aa('0x9'),'as':_0x90aa('0x9'),'attributes':['id',_0x90aa('0x5')]}]},{'model':_0x90aa('0xa'),'as':'Fields','attributes':['id',_0x90aa('0x10'),_0x90aa('0x8'),_0x90aa('0x11'),'nameField',_0x90aa('0x12'),_0x90aa('0xf')],'include':[{'model':_0x90aa('0x9'),'as':_0x90aa('0x9'),'attributes':['id','name']}]}]}]},'log':_0x90aa('0x1')});};};