Built motion from commit (unavailable).|2.5.2
[motion2.git] / server / services / ami / rpc / trigger.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 _0xfaeb=['action','data1','data2','data4','data5','data6','../client','Request','GetTrigger','name','channel','status','AllConditions','field','operator','value','Condition','AnyConditions','Actions'];(function(_0x2c6f6c,_0x52fc92){var _0x4e42d9=function(_0x1405d1){while(--_0x1405d1){_0x2c6f6c['push'](_0x2c6f6c['shift']());}};_0x4e42d9(++_0x52fc92);}(_0xfaeb,0x136));var _0xbfae=function(_0x455c6c,_0x1e78b7){_0x455c6c=_0x455c6c-0x0;var _0x488242=_0xfaeb[_0x455c6c];return _0x488242;};'use strict';var client=require(_0xbfae('0x0'));exports['getTriggers']=function(_0x4d6600){return function(_0x3d4d85){return client[_0xbfae('0x1')](_0xbfae('0x2'),{'options':{'raw':![],'attributes':['id',_0xbfae('0x3'),_0xbfae('0x4'),_0xbfae('0x5')],'include':[{'model':'Condition','as':_0xbfae('0x6'),'attributes':['id',_0xbfae('0x7'),_0xbfae('0x8'),_0xbfae('0x9')]},{'model':_0xbfae('0xa'),'as':_0xbfae('0xb'),'attributes':['id','field',_0xbfae('0x8'),'value']},{'model':'Action','as':_0xbfae('0xc'),'attributes':['id',_0xbfae('0xd'),_0xbfae('0xe'),_0xbfae('0xf'),'data3',_0xbfae('0x10'),_0xbfae('0x11'),_0xbfae('0x12'),'data7']}]},'log':'GetTrigger'});};};