a632997db36683f37cac878e7406ebb1afec677c
[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 _0x726f=['content','variableName','Variable','keyContent','Fields','idField','nameField','GetFreshdeskAccount','../../client','getFreshdeskAccounts','Request','username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','name','Tag','FreshdeskField','Subjects','type'];(function(_0x36018a,_0x54d3c7){var _0x420750=function(_0x573ac1){while(--_0x573ac1){_0x36018a['push'](_0x36018a['shift']());}};_0x420750(++_0x54d3c7);}(_0x726f,0xa2));var _0xf726=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0x726f[_0x42cae2];return _0x5f256f;};'use strict';var client=require(_0xf726('0x0'));exports[_0xf726('0x1')]=function(){return function(_0x594bf2){return client[_0xf726('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id','name',_0xf726('0x3'),_0xf726('0x4'),_0xf726('0x5'),_0xf726('0x6')],'include':[{'model':_0xf726('0x7'),'as':_0xf726('0x8'),'attributes':['id',_0xf726('0x9')],'include':[{'model':_0xf726('0xa'),'attributes':['id',_0xf726('0x9')]},{'model':_0xf726('0xb'),'as':_0xf726('0xc'),'attributes':['id',_0xf726('0xd'),_0xf726('0xe'),_0xf726('0xf')],'include':[{'model':_0xf726('0x10'),'as':_0xf726('0x10'),'attributes':['id',_0xf726('0x9')]}]},{'model':'FreshdeskField','as':'Descriptions','attributes':['id','type',_0xf726('0xe'),'key','keyType',_0xf726('0x11'),_0xf726('0xf')],'include':[{'model':'Variable','as':_0xf726('0x10'),'attributes':['id',_0xf726('0x9')]}]},{'model':_0xf726('0xb'),'as':_0xf726('0x12'),'attributes':['id',_0xf726('0xd'),_0xf726('0xe'),_0xf726('0x13'),_0xf726('0x14'),'customField',_0xf726('0xf')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xf726('0x9')]}]}]}]},'log':_0xf726('0x15')});};};