Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0xbdd5=['Configurations','VtigerField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','customField','GetVtigerAccount','../../client','getVtigerAccounts','Request','name','description','accessKey','remoteUri','serverUrl','VtigerConfiguration'];(function(_0x3ed727,_0x173334){var _0x1a816f=function(_0x50e1fc){while(--_0x50e1fc){_0x3ed727['push'](_0x3ed727['shift']());}};_0x1a816f(++_0x173334);}(_0xbdd5,0xdd));var _0x5bdd=function(_0x5ac53e,_0x289259){_0x5ac53e=_0x5ac53e-0x0;var _0xacba5f=_0xbdd5[_0x5ac53e];return _0xacba5f;};'use strict';var client=require(_0x5bdd('0x0'));exports[_0x5bdd('0x1')]=function(){return function(_0x417f8d){return client[_0x5bdd('0x2')]('GetVtigerAccount',{'options':{'raw':![],'attributes':['id',_0x5bdd('0x3'),_0x5bdd('0x4'),'username',_0x5bdd('0x5'),_0x5bdd('0x6'),_0x5bdd('0x7')],'include':[{'model':_0x5bdd('0x8'),'as':_0x5bdd('0x9'),'attributes':['id',_0x5bdd('0x3')],'include':[{'model':_0x5bdd('0xa'),'as':_0x5bdd('0xb'),'attributes':['id',_0x5bdd('0xc'),_0x5bdd('0xd'),_0x5bdd('0xe')],'include':[{'model':'Variable','as':_0x5bdd('0xf'),'attributes':['id',_0x5bdd('0x3')]}]},{'model':_0x5bdd('0xa'),'as':_0x5bdd('0x10'),'attributes':['id',_0x5bdd('0xc'),'content',_0x5bdd('0x11'),_0x5bdd('0x12'),_0x5bdd('0x13'),_0x5bdd('0xe')],'include':[{'model':_0x5bdd('0xf'),'as':_0x5bdd('0xf'),'attributes':['id',_0x5bdd('0x3')]}]},{'model':'VtigerField','as':_0x5bdd('0x14'),'attributes':['id',_0x5bdd('0xc'),_0x5bdd('0xd'),'idField','nameField',_0x5bdd('0x15'),_0x5bdd('0xe')],'include':[{'model':_0x5bdd('0xf'),'as':_0x5bdd('0xf'),'attributes':['id',_0x5bdd('0x3')]}]}]}]},'log':_0x5bdd('0x16')});};};