Built motion from commit (unavailable).|2.5.6
[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 _0xfe32=['name','channel','status','Condition','field','operator','Action','Actions','action','data1','data3','data4','../client','getTriggers','Request','GetTrigger'];(function(_0x577077,_0x52f056){var _0x370769=function(_0x34d109){while(--_0x34d109){_0x577077['push'](_0x577077['shift']());}};_0x370769(++_0x52f056);}(_0xfe32,0x8c));var _0x2fe3=function(_0x31ddf4,_0x5f0b68){_0x31ddf4=_0x31ddf4-0x0;var _0xfef062=_0xfe32[_0x31ddf4];return _0xfef062;};'use strict';var client=require(_0x2fe3('0x0'));exports[_0x2fe3('0x1')]=function(_0x4c4220){return function(_0x45a05b){return client[_0x2fe3('0x2')](_0x2fe3('0x3'),{'options':{'raw':![],'attributes':['id',_0x2fe3('0x4'),_0x2fe3('0x5'),_0x2fe3('0x6')],'include':[{'model':_0x2fe3('0x7'),'as':'AllConditions','attributes':['id',_0x2fe3('0x8'),_0x2fe3('0x9'),'value']},{'model':'Condition','as':'AnyConditions','attributes':['id',_0x2fe3('0x8'),_0x2fe3('0x9'),'value']},{'model':_0x2fe3('0xa'),'as':_0x2fe3('0xb'),'attributes':['id',_0x2fe3('0xc'),_0x2fe3('0xd'),'data2',_0x2fe3('0xe'),_0x2fe3('0xf'),'data5','data6','data7']}]},'log':_0x2fe3('0x3')});};};