Built motion from commit 753c950e.|2.5.42
[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 _0x50b1=['path','rimraf','./action.attributes','exports','../../config/logger','api','bluebird'];(function(_0x55c485,_0x3fe77e){var _0x6bb521=function(_0x466a3d){while(--_0x466a3d){_0x55c485['push'](_0x55c485['shift']());}};_0x6bb521(++_0x3fe77e);}(_0x50b1,0x1af));var _0x150b=function(_0x32bc33,_0x4d2d59){_0x32bc33=_0x32bc33-0x0;var _0x1cb290=_0x50b1[_0x32bc33];return _0x1cb290;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x150b('0x0'))(_0x150b('0x1'));var moment=require('moment');var BPromise=require(_0x150b('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x150b('0x3'));var rimraf=require(_0x150b('0x4'));var config=require('../../config/environment');var attributes=require(_0x150b('0x5'));module[_0x150b('0x6')]=function(_0x3720a7,_0x529017){return _0x3720a7['define']('Action',attributes,{'tableName':'tools_actions','paranoid':![],'indexes':[],'timestamps':!![]});};