Built motion from commit ce9a7520.|2.5.39
[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 _0x4302=['status','AllConditions','field','operator','value','Condition','AnyConditions','Action','Actions','action','data3','data4','data5','data7','../client','getTriggers','Request','GetTrigger','name','channel'];(function(_0x2f3be4,_0x5ba832){var _0x410f8b=function(_0x3be191){while(--_0x3be191){_0x2f3be4['push'](_0x2f3be4['shift']());}};_0x410f8b(++_0x5ba832);}(_0x4302,0x1ee));var _0x2430=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x4302[_0x14add3];return _0x4a174f;};'use strict';var client=require(_0x2430('0x0'));exports[_0x2430('0x1')]=function(_0x26506e){return function(_0x4cdb84){return client[_0x2430('0x2')](_0x2430('0x3'),{'options':{'raw':![],'attributes':['id',_0x2430('0x4'),_0x2430('0x5'),_0x2430('0x6')],'include':[{'model':'Condition','as':_0x2430('0x7'),'attributes':['id',_0x2430('0x8'),_0x2430('0x9'),_0x2430('0xa')]},{'model':_0x2430('0xb'),'as':_0x2430('0xc'),'attributes':['id',_0x2430('0x8'),_0x2430('0x9'),_0x2430('0xa')]},{'model':_0x2430('0xd'),'as':_0x2430('0xe'),'attributes':['id',_0x2430('0xf'),'data1','data2',_0x2430('0x10'),_0x2430('0x11'),_0x2430('0x12'),'data6',_0x2430('0x13')]}]},'log':'GetTrigger'});};};