1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xc6c9=['Condition','AllConditions','field','operator','value','AnyConditions','action','data1','data2','data4','data5','data6','../client','Request','GetTrigger'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0xc6c9,0x1bf));var _0x9c6c=function(_0x1facfa,_0x1acf7d){_0x1facfa=_0x1facfa-0x0;var _0x9ec701=_0xc6c9[_0x1facfa];return _0x9ec701;};'use strict';var client=require(_0x9c6c('0x0'));exports['getTriggers']=function(_0x3a770a){return function(_0x45976a){return client[_0x9c6c('0x1')](_0x9c6c('0x2'),{'options':{'raw':![],'attributes':['id','name','channel','status'],'include':[{'model':_0x9c6c('0x3'),'as':_0x9c6c('0x4'),'attributes':['id',_0x9c6c('0x5'),_0x9c6c('0x6'),_0x9c6c('0x7')]},{'model':'Condition','as':_0x9c6c('0x8'),'attributes':['id',_0x9c6c('0x5'),_0x9c6c('0x6'),'value']},{'model':'Action','as':'Actions','attributes':['id',_0x9c6c('0x9'),_0x9c6c('0xa'),_0x9c6c('0xb'),'data3',_0x9c6c('0xc'),_0x9c6c('0xd'),_0x9c6c('0xe'),'data7']}]},'log':_0x9c6c('0x2')});};};