Built motion from commit (unavailable).|2.5.4
[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 _0xd1cf=['remoteUri','serverUrl','FreshdeskConfiguration','Configurations','name','Tag','type','Variable','FreshdeskField','Descriptions','content','key','keyType','keyContent','variableName','idField','nameField','customField','getFreshdeskAccounts','Request','GetFreshdeskAccount','username','apiKey'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0xd1cf,0x10f));var _0xfd1c=function(_0x333fc8,_0x2b292c){_0x333fc8=_0x333fc8-0x0;var _0x432439=_0xd1cf[_0x333fc8];return _0x432439;};'use strict';var client=require('../../client');exports[_0xfd1c('0x0')]=function(){return function(_0x4fc1e9){return client[_0xfd1c('0x1')](_0xfd1c('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xfd1c('0x3'),_0xfd1c('0x4'),_0xfd1c('0x5'),_0xfd1c('0x6')],'include':[{'model':_0xfd1c('0x7'),'as':_0xfd1c('0x8'),'attributes':['id',_0xfd1c('0x9')],'include':[{'model':_0xfd1c('0xa'),'attributes':['id',_0xfd1c('0x9')]},{'model':'FreshdeskField','as':'Subjects','attributes':['id',_0xfd1c('0xb'),'content','variableName'],'include':[{'model':_0xfd1c('0xc'),'as':_0xfd1c('0xc'),'attributes':['id','name']}]},{'model':_0xfd1c('0xd'),'as':_0xfd1c('0xe'),'attributes':['id',_0xfd1c('0xb'),_0xfd1c('0xf'),_0xfd1c('0x10'),_0xfd1c('0x11'),_0xfd1c('0x12'),_0xfd1c('0x13')],'include':[{'model':_0xfd1c('0xc'),'as':_0xfd1c('0xc'),'attributes':['id',_0xfd1c('0x9')]}]},{'model':_0xfd1c('0xd'),'as':'Fields','attributes':['id','type','content',_0xfd1c('0x14'),_0xfd1c('0x15'),_0xfd1c('0x16'),'variableName'],'include':[{'model':'Variable','as':_0xfd1c('0xc'),'attributes':['id',_0xfd1c('0x9')]}]}]}]},'log':_0xfd1c('0x2')});};};