Built motion from commit 9d7072cc.|2.5.39
[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 _0x4f08=['Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','FreshdeskField','idField','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','username','apiKey','remoteUri','FreshdeskConfiguration','name','Tag'];(function(_0x1b6fca,_0x219e51){var _0x13ebbf=function(_0x1c53c6){while(--_0x1c53c6){_0x1b6fca['push'](_0x1b6fca['shift']());}};_0x13ebbf(++_0x219e51);}(_0x4f08,0x194));var _0x84f0=function(_0xc10eab,_0x140077){_0xc10eab=_0xc10eab-0x0;var _0x535ee4=_0x4f08[_0xc10eab];return _0x535ee4;};'use strict';var client=require(_0x84f0('0x0'));exports[_0x84f0('0x1')]=function(){return function(_0x4bff2d){return client[_0x84f0('0x2')](_0x84f0('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x84f0('0x4'),_0x84f0('0x5'),_0x84f0('0x6'),'serverUrl'],'include':[{'model':_0x84f0('0x7'),'as':'Configurations','attributes':['id',_0x84f0('0x8')],'include':[{'model':_0x84f0('0x9'),'attributes':['id',_0x84f0('0x8')]},{'model':'FreshdeskField','as':_0x84f0('0xa'),'attributes':['id',_0x84f0('0xb'),_0x84f0('0xc'),_0x84f0('0xd')],'include':[{'model':_0x84f0('0xe'),'as':_0x84f0('0xe'),'attributes':['id','name']}]},{'model':'FreshdeskField','as':_0x84f0('0xf'),'attributes':['id',_0x84f0('0xb'),_0x84f0('0xc'),_0x84f0('0x10'),_0x84f0('0x11'),_0x84f0('0x12'),_0x84f0('0xd')],'include':[{'model':_0x84f0('0xe'),'as':_0x84f0('0xe'),'attributes':['id','name']}]},{'model':_0x84f0('0x13'),'as':'Fields','attributes':['id',_0x84f0('0xb'),'content',_0x84f0('0x14'),_0x84f0('0x15'),_0x84f0('0x16'),_0x84f0('0xd')],'include':[{'model':_0x84f0('0xe'),'as':_0x84f0('0xe'),'attributes':['id',_0x84f0('0x8')]}]}]}]},'log':_0x84f0('0x3')});};};