Built motion from commit (unavailable).|2.5.14
[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 _0x3bb1=['getTriggers','GetTrigger','name','channel','status','Condition','AllConditions','field','operator','value','Action','Actions','action','data1','data3','data4','data5','data6','data7','../client'];(function(_0x1a6c83,_0x257f26){var _0x58c994=function(_0x52efe6){while(--_0x52efe6){_0x1a6c83['push'](_0x1a6c83['shift']());}};_0x58c994(++_0x257f26);}(_0x3bb1,0x1df));var _0x13bb=function(_0x2afa5e,_0x3b01c0){_0x2afa5e=_0x2afa5e-0x0;var _0xa21dc8=_0x3bb1[_0x2afa5e];return _0xa21dc8;};'use strict';var client=require(_0x13bb('0x0'));exports[_0x13bb('0x1')]=function(_0x259e72){return function(_0x2fef24){return client['Request'](_0x13bb('0x2'),{'options':{'raw':![],'attributes':['id',_0x13bb('0x3'),_0x13bb('0x4'),_0x13bb('0x5')],'include':[{'model':_0x13bb('0x6'),'as':_0x13bb('0x7'),'attributes':['id',_0x13bb('0x8'),_0x13bb('0x9'),_0x13bb('0xa')]},{'model':'Condition','as':'AnyConditions','attributes':['id','field',_0x13bb('0x9'),'value']},{'model':_0x13bb('0xb'),'as':_0x13bb('0xc'),'attributes':['id',_0x13bb('0xd'),_0x13bb('0xe'),'data2',_0x13bb('0xf'),_0x13bb('0x10'),_0x13bb('0x11'),_0x13bb('0x12'),_0x13bb('0x13')]}]},'log':_0x13bb('0x2')});};};