1f345bcaa77bc980983840ed2e8ec5c73df3d7b6
[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 _0x95c5=['apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','FreshdeskField','Subjects','type','content','variableName','Variable','key','keyContent','Fields','idField','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username'];(function(_0x5cb7f4,_0x3430a0){var _0x3d56f7=function(_0x311a68){while(--_0x311a68){_0x5cb7f4['push'](_0x5cb7f4['shift']());}};_0x3d56f7(++_0x3430a0);}(_0x95c5,0x153));var _0x595c=function(_0x199b1f,_0x4ed849){_0x199b1f=_0x199b1f-0x0;var _0x267ac9=_0x95c5[_0x199b1f];return _0x267ac9;};'use strict';var client=require(_0x595c('0x0'));exports[_0x595c('0x1')]=function(){return function(_0x4c7d81){return client[_0x595c('0x2')](_0x595c('0x3'),{'options':{'raw':![],'attributes':['id',_0x595c('0x4'),_0x595c('0x5'),_0x595c('0x6'),_0x595c('0x7'),_0x595c('0x8')],'include':[{'model':_0x595c('0x9'),'as':_0x595c('0xa'),'attributes':['id',_0x595c('0x4')],'include':[{'model':'Tag','attributes':['id','name']},{'model':_0x595c('0xb'),'as':_0x595c('0xc'),'attributes':['id',_0x595c('0xd'),_0x595c('0xe'),_0x595c('0xf')],'include':[{'model':_0x595c('0x10'),'as':_0x595c('0x10'),'attributes':['id',_0x595c('0x4')]}]},{'model':_0x595c('0xb'),'as':'Descriptions','attributes':['id',_0x595c('0xd'),_0x595c('0xe'),_0x595c('0x11'),'keyType',_0x595c('0x12'),_0x595c('0xf')],'include':[{'model':_0x595c('0x10'),'as':_0x595c('0x10'),'attributes':['id',_0x595c('0x4')]}]},{'model':_0x595c('0xb'),'as':_0x595c('0x13'),'attributes':['id',_0x595c('0xd'),_0x595c('0xe'),_0x595c('0x14'),_0x595c('0x15'),_0x595c('0x16'),_0x595c('0xf')],'include':[{'model':_0x595c('0x10'),'as':'Variable','attributes':['id',_0x595c('0x4')]}]}]}]},'log':_0x595c('0x3')});};};