Built motion from commit fe909640.|2.6.8
[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 _0x9664=['status','Condition','AllConditions','operator','value','AnyConditions','field','Action','Actions','data1','data2','data3','data4','data7','../client','getTriggers','GetTrigger','name','channel'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x9664,0x18a));var _0x4966=function(_0x10fa8d,_0x4d6063){_0x10fa8d=_0x10fa8d-0x0;var _0x5d49cb=_0x9664[_0x10fa8d];return _0x5d49cb;};'use strict';var client=require(_0x4966('0x0'));exports[_0x4966('0x1')]=function(_0x304dd3){return function(_0x357a07){return client['Request'](_0x4966('0x2'),{'options':{'raw':![],'attributes':['id',_0x4966('0x3'),_0x4966('0x4'),_0x4966('0x5')],'include':[{'model':_0x4966('0x6'),'as':_0x4966('0x7'),'attributes':['id','field',_0x4966('0x8'),_0x4966('0x9')]},{'model':_0x4966('0x6'),'as':_0x4966('0xa'),'attributes':['id',_0x4966('0xb'),'operator',_0x4966('0x9')]},{'model':_0x4966('0xc'),'as':_0x4966('0xd'),'attributes':['id','action',_0x4966('0xe'),_0x4966('0xf'),_0x4966('0x10'),_0x4966('0x11'),'data5','data6',_0x4966('0x12')]}]},'log':_0x4966('0x2')});};};