Built motion from commit (unavailable).|2.3.1
[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 _0xe4c1=['Descriptions','keyType','keyContent','Fields','nameField','customField','../../client','getVtigerAccounts','GetVtigerAccount','name','description','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations','VtigerField','Subjects','type','content','variableName','Variable'];(function(_0x23ee99,_0x5a5cdf){var _0x202e63=function(_0x1dda56){while(--_0x1dda56){_0x23ee99['push'](_0x23ee99['shift']());}};_0x202e63(++_0x5a5cdf);}(_0xe4c1,0x150));var _0x1e4c=function(_0x32b542,_0x4512fa){_0x32b542=_0x32b542-0x0;var _0x554d54=_0xe4c1[_0x32b542];return _0x554d54;};'use strict';var client=require(_0x1e4c('0x0'));exports[_0x1e4c('0x1')]=function(){return function(_0x34a853){return client['Request'](_0x1e4c('0x2'),{'options':{'raw':![],'attributes':['id',_0x1e4c('0x3'),_0x1e4c('0x4'),'username',_0x1e4c('0x5'),_0x1e4c('0x6'),_0x1e4c('0x7')],'include':[{'model':_0x1e4c('0x8'),'as':_0x1e4c('0x9'),'attributes':['id',_0x1e4c('0x3')],'include':[{'model':_0x1e4c('0xa'),'as':_0x1e4c('0xb'),'attributes':['id',_0x1e4c('0xc'),_0x1e4c('0xd'),_0x1e4c('0xe')],'include':[{'model':_0x1e4c('0xf'),'as':_0x1e4c('0xf'),'attributes':['id','name']}]},{'model':_0x1e4c('0xa'),'as':_0x1e4c('0x10'),'attributes':['id','type',_0x1e4c('0xd'),'key',_0x1e4c('0x11'),_0x1e4c('0x12'),_0x1e4c('0xe')],'include':[{'model':_0x1e4c('0xf'),'as':_0x1e4c('0xf'),'attributes':['id',_0x1e4c('0x3')]}]},{'model':_0x1e4c('0xa'),'as':_0x1e4c('0x13'),'attributes':['id','type',_0x1e4c('0xd'),'idField',_0x1e4c('0x14'),_0x1e4c('0x15'),_0x1e4c('0xe')],'include':[{'model':_0x1e4c('0xf'),'as':_0x1e4c('0xf'),'attributes':['id',_0x1e4c('0x3')]}]}]}]},'log':'GetVtigerAccount'});};};