Built motion from commit (unavailable).|2.4.18
[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 _0x9ce3=['ZendeskField','Subjects','type','variableName','Variable','Descriptions','keyType','keyContent','Fields','content','nameField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','username','password','remoteUri','authType','ZendeskConfiguration','Configurations','name'];(function(_0x470643,_0x24c16f){var _0x530c2d=function(_0x14ebda){while(--_0x14ebda){_0x470643['push'](_0x470643['shift']());}};_0x530c2d(++_0x24c16f);}(_0x9ce3,0xc4));var _0x39ce=function(_0x4604ad,_0x2c516e){_0x4604ad=_0x4604ad-0x0;var _0x3ed8ef=_0x9ce3[_0x4604ad];return _0x3ed8ef;};'use strict';var client=require(_0x39ce('0x0'));exports[_0x39ce('0x1')]=function(){return function(_0x406e1c){return client[_0x39ce('0x2')](_0x39ce('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x39ce('0x4'),_0x39ce('0x5'),'token',_0x39ce('0x6'),_0x39ce('0x7'),'serverUrl','type'],'include':[{'model':_0x39ce('0x8'),'as':_0x39ce('0x9'),'attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0x39ce('0xa')]},{'model':_0x39ce('0xb'),'as':_0x39ce('0xc'),'attributes':['id',_0x39ce('0xd'),'content',_0x39ce('0xe')],'include':[{'model':_0x39ce('0xf'),'as':'Variable','attributes':['id',_0x39ce('0xa')]}]},{'model':_0x39ce('0xb'),'as':_0x39ce('0x10'),'attributes':['id',_0x39ce('0xd'),'content','key',_0x39ce('0x11'),_0x39ce('0x12'),_0x39ce('0xe')],'include':[{'model':_0x39ce('0xf'),'as':_0x39ce('0xf'),'attributes':['id',_0x39ce('0xa')]}]},{'model':'ZendeskField','as':_0x39ce('0x13'),'attributes':['id',_0x39ce('0xd'),_0x39ce('0x14'),'idField',_0x39ce('0x15'),_0x39ce('0x16'),_0x39ce('0xe')],'include':[{'model':_0x39ce('0xf'),'as':_0x39ce('0xf'),'attributes':['id',_0x39ce('0xa')]}]}]}]},'log':_0x39ce('0x3')});};};