81f49ea3f38c245d57e911a1c9ccaceb350a5d01
[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 _0x63c6=['Fields','idField','customField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','name','username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','FreshdeskField','Subjects','type','variableName','Variable','Descriptions','content','key','keyType','keyContent'];(function(_0x712d7f,_0x3356e8){var _0x17e3cc=function(_0x279335){while(--_0x279335){_0x712d7f['push'](_0x712d7f['shift']());}};_0x17e3cc(++_0x3356e8);}(_0x63c6,0xbb));var _0x663c=function(_0x491994,_0x3f3473){_0x491994=_0x491994-0x0;var _0x41faa6=_0x63c6[_0x491994];return _0x41faa6;};'use strict';var client=require(_0x663c('0x0'));exports[_0x663c('0x1')]=function(){return function(_0x599175){return client['Request'](_0x663c('0x2'),{'options':{'raw':![],'attributes':['id',_0x663c('0x3'),_0x663c('0x4'),_0x663c('0x5'),_0x663c('0x6'),_0x663c('0x7')],'include':[{'model':_0x663c('0x8'),'as':_0x663c('0x9'),'attributes':['id',_0x663c('0x3')],'include':[{'model':'Tag','attributes':['id',_0x663c('0x3')]},{'model':_0x663c('0xa'),'as':_0x663c('0xb'),'attributes':['id',_0x663c('0xc'),'content',_0x663c('0xd')],'include':[{'model':'Variable','as':_0x663c('0xe'),'attributes':['id','name']}]},{'model':_0x663c('0xa'),'as':_0x663c('0xf'),'attributes':['id',_0x663c('0xc'),_0x663c('0x10'),_0x663c('0x11'),_0x663c('0x12'),_0x663c('0x13'),'variableName'],'include':[{'model':'Variable','as':_0x663c('0xe'),'attributes':['id',_0x663c('0x3')]}]},{'model':'FreshdeskField','as':_0x663c('0x14'),'attributes':['id',_0x663c('0xc'),_0x663c('0x10'),_0x663c('0x15'),'nameField',_0x663c('0x16'),_0x663c('0xd')],'include':[{'model':'Variable','as':_0x663c('0xe'),'attributes':['id','name']}]}]}]},'log':_0x663c('0x2')});};};