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 _0x2b5f=['Action','action','data2','data3','data4','data5','data6','data7','../client','getTriggers','Request','GetTrigger','name','Condition','AllConditions','operator','AnyConditions'];(function(_0x5a032c,_0x188eb1){var _0x41fe81=function(_0x128ac7){while(--_0x128ac7){_0x5a032c['push'](_0x5a032c['shift']());}};_0x41fe81(++_0x188eb1);}(_0x2b5f,0x15c));var _0xf2b5=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x2b5f[_0x122ef9];return _0x42fba0;};'use strict';var client=require(_0xf2b5('0x0'));exports[_0xf2b5('0x1')]=function(_0x25c040){return function(_0x5359e1){return client[_0xf2b5('0x2')](_0xf2b5('0x3'),{'options':{'raw':![],'attributes':['id',_0xf2b5('0x4'),'channel','status'],'include':[{'model':_0xf2b5('0x5'),'as':_0xf2b5('0x6'),'attributes':['id','field',_0xf2b5('0x7'),'value']},{'model':'Condition','as':_0xf2b5('0x8'),'attributes':['id','field','operator','value']},{'model':_0xf2b5('0x9'),'as':'Actions','attributes':['id',_0xf2b5('0xa'),'data1',_0xf2b5('0xb'),_0xf2b5('0xc'),_0xf2b5('0xd'),_0xf2b5('0xe'),_0xf2b5('0xf'),_0xf2b5('0x10')]}]},'log':_0xf2b5('0x3')});};};