Built motion from commit 06eb8eb0.|2.6.31
[motion2.git] / server / api / action / action.model.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 _0x05fe=['lodash','util','api','moment','bluebird','../../config/environment','./action.attributes','define','Action'];(function(_0x5e8460,_0x2003b5){var _0x3d50fd=function(_0x4c499f){while(--_0x4c499f){_0x5e8460['push'](_0x5e8460['shift']());}};_0x3d50fd(++_0x2003b5);}(_0x05fe,0x1a7));var _0xe05f=function(_0x97ac71,_0x5a0b5f){_0x97ac71=_0x97ac71-0x0;var _0x180617=_0x05fe[_0x97ac71];return _0x180617;};'use strict';var _=require(_0xe05f('0x0'));var util=require(_0xe05f('0x1'));var logger=require('../../config/logger')(_0xe05f('0x2'));var moment=require(_0xe05f('0x3'));var BPromise=require(_0xe05f('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xe05f('0x5'));var attributes=require(_0xe05f('0x6'));module['exports']=function(_0x3b4bea,_0xf65e86){return _0x3b4bea[_0xe05f('0x7')](_0xe05f('0x8'),attributes,{'tableName':'tools_actions','paranoid':![],'indexes':[],'timestamps':!![]});};