Built motion from commit e02f907f.|2.6.14
[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 _0xb765=['Configurations','Tag','ZendeskField','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','nameField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration'];(function(_0x80303c,_0x565556){var _0x532ee0=function(_0x410ab3){while(--_0x410ab3){_0x80303c['push'](_0x80303c['shift']());}};_0x532ee0(++_0x565556);}(_0xb765,0xdd));var _0x5b76=function(_0x8c43de,_0x90ff31){_0x8c43de=_0x8c43de-0x0;var _0xa6591b=_0xb765[_0x8c43de];return _0xa6591b;};'use strict';var client=require(_0x5b76('0x0'));exports[_0x5b76('0x1')]=function(){return function(_0x4abe34){return client[_0x5b76('0x2')](_0x5b76('0x3'),{'options':{'raw':![],'attributes':['id',_0x5b76('0x4'),_0x5b76('0x5'),_0x5b76('0x6'),_0x5b76('0x7'),_0x5b76('0x8'),_0x5b76('0x9'),_0x5b76('0xa'),_0x5b76('0xb')],'include':[{'model':_0x5b76('0xc'),'as':_0x5b76('0xd'),'attributes':['id',_0x5b76('0x4')],'include':[{'model':_0x5b76('0xe'),'attributes':['id','name']},{'model':_0x5b76('0xf'),'as':'Subjects','attributes':['id',_0x5b76('0xb'),_0x5b76('0x10'),_0x5b76('0x11')],'include':[{'model':_0x5b76('0x12'),'as':_0x5b76('0x12'),'attributes':['id',_0x5b76('0x4')]}]},{'model':'ZendeskField','as':_0x5b76('0x13'),'attributes':['id',_0x5b76('0xb'),_0x5b76('0x10'),_0x5b76('0x14'),_0x5b76('0x15'),_0x5b76('0x16'),'variableName'],'include':[{'model':_0x5b76('0x12'),'as':_0x5b76('0x12'),'attributes':['id',_0x5b76('0x4')]}]},{'model':_0x5b76('0xf'),'as':_0x5b76('0x17'),'attributes':['id','type','content','idField',_0x5b76('0x18'),_0x5b76('0x19'),_0x5b76('0x11')],'include':[{'model':'Variable','as':_0x5b76('0x12'),'attributes':['id',_0x5b76('0x4')]}]}]}]},'log':_0x5b76('0x3')});};};