Built motion from commit (unavailable).|2.5.22
[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 _0xc193=['GetTrigger','name','channel','status','Condition','AllConditions','field','operator','value','AnyConditions','Action','data2','data3','data4','data5','data6','data7','../client','getTriggers','Request'];(function(_0x2df13c,_0x4b08c5){var _0x3adadf=function(_0x189856){while(--_0x189856){_0x2df13c['push'](_0x2df13c['shift']());}};_0x3adadf(++_0x4b08c5);}(_0xc193,0x18d));var _0x3c19=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0xc193[_0x167cc1];return _0x10bc4b;};'use strict';var client=require(_0x3c19('0x0'));exports[_0x3c19('0x1')]=function(_0x25c782){return function(_0x3a1986){return client[_0x3c19('0x2')](_0x3c19('0x3'),{'options':{'raw':![],'attributes':['id',_0x3c19('0x4'),_0x3c19('0x5'),_0x3c19('0x6')],'include':[{'model':_0x3c19('0x7'),'as':_0x3c19('0x8'),'attributes':['id',_0x3c19('0x9'),_0x3c19('0xa'),_0x3c19('0xb')]},{'model':_0x3c19('0x7'),'as':_0x3c19('0xc'),'attributes':['id','field','operator',_0x3c19('0xb')]},{'model':_0x3c19('0xd'),'as':'Actions','attributes':['id','action','data1',_0x3c19('0xe'),_0x3c19('0xf'),_0x3c19('0x10'),_0x3c19('0x11'),_0x3c19('0x12'),_0x3c19('0x13')]}]},'log':_0x3c19('0x3')});};};