Built motion from commit (unavailable).|2.5.13
[motion2.git] / server / services / ami / rpc / integrations / zendesk.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 _0xf629=['ZendeskConfiguration','Tag','name','ZendeskField','Variable','Descriptions','content','keyType','variableName','Fields','nameField','getZendeskAccounts','Request','GetZendeskAccount','username','password','token','serverUrl','type'];(function(_0x230a04,_0x58a5a1){var _0x26451c=function(_0x509c51){while(--_0x509c51){_0x230a04['push'](_0x230a04['shift']());}};_0x26451c(++_0x58a5a1);}(_0xf629,0xb6));var _0x9f62=function(_0x4d3b77,_0x3c789c){_0x4d3b77=_0x4d3b77-0x0;var _0x1a716a=_0xf629[_0x4d3b77];return _0x1a716a;};'use strict';var client=require('../../client');exports[_0x9f62('0x0')]=function(){return function(_0x406327){return client[_0x9f62('0x1')](_0x9f62('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x9f62('0x3'),_0x9f62('0x4'),_0x9f62('0x5'),'remoteUri','authType',_0x9f62('0x6'),_0x9f62('0x7')],'include':[{'model':_0x9f62('0x8'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x9f62('0x9'),'attributes':['id',_0x9f62('0xa')]},{'model':_0x9f62('0xb'),'as':'Subjects','attributes':['id',_0x9f62('0x7'),'content','variableName'],'include':[{'model':_0x9f62('0xc'),'as':_0x9f62('0xc'),'attributes':['id','name']}]},{'model':'ZendeskField','as':_0x9f62('0xd'),'attributes':['id',_0x9f62('0x7'),_0x9f62('0xe'),'key',_0x9f62('0xf'),'keyContent',_0x9f62('0x10')],'include':[{'model':_0x9f62('0xc'),'as':_0x9f62('0xc'),'attributes':['id',_0x9f62('0xa')]}]},{'model':_0x9f62('0xb'),'as':_0x9f62('0x11'),'attributes':['id','type',_0x9f62('0xe'),'idField',_0x9f62('0x12'),'customField',_0x9f62('0x10')],'include':[{'model':'Variable','as':_0x9f62('0xc'),'attributes':['id',_0x9f62('0xa')]}]}]}]},'log':_0x9f62('0x2')});};};