Built motion from commit 85328c08.|2.5.50
[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 _0x80ed=['GetFreshdeskAccount','username','apiKey','remoteUri','serverUrl','Configurations','name','Tag','FreshdeskField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','nameField','customField','../../client','Request'];(function(_0x1969a7,_0x5a133a){var _0x3d665f=function(_0x39c64b){while(--_0x39c64b){_0x1969a7['push'](_0x1969a7['shift']());}};_0x3d665f(++_0x5a133a);}(_0x80ed,0x11c));var _0xd80e=function(_0x1a52a4,_0x247aff){_0x1a52a4=_0x1a52a4-0x0;var _0x1ca3e7=_0x80ed[_0x1a52a4];return _0x1ca3e7;};'use strict';var client=require(_0xd80e('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x1bb10e){return client[_0xd80e('0x1')](_0xd80e('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xd80e('0x3'),_0xd80e('0x4'),_0xd80e('0x5'),_0xd80e('0x6')],'include':[{'model':'FreshdeskConfiguration','as':_0xd80e('0x7'),'attributes':['id',_0xd80e('0x8')],'include':[{'model':_0xd80e('0x9'),'attributes':['id','name']},{'model':_0xd80e('0xa'),'as':_0xd80e('0xb'),'attributes':['id',_0xd80e('0xc'),_0xd80e('0xd'),_0xd80e('0xe')],'include':[{'model':_0xd80e('0xf'),'as':_0xd80e('0xf'),'attributes':['id',_0xd80e('0x8')]}]},{'model':_0xd80e('0xa'),'as':_0xd80e('0x10'),'attributes':['id','type',_0xd80e('0xd'),_0xd80e('0x11'),_0xd80e('0x12'),_0xd80e('0x13'),_0xd80e('0xe')],'include':[{'model':_0xd80e('0xf'),'as':_0xd80e('0xf'),'attributes':['id',_0xd80e('0x8')]}]},{'model':_0xd80e('0xa'),'as':'Fields','attributes':['id','type','content','idField',_0xd80e('0x14'),_0xd80e('0x15'),_0xd80e('0xe')],'include':[{'model':_0xd80e('0xf'),'as':_0xd80e('0xf'),'attributes':['id','name']}]}]}]},'log':_0xd80e('0x2')});};};