Built motion from commit (unavailable).|2.5.8
[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 _0x4481=['request-promise','rimraf','./action.attributes','exports','define','Action','tools_actions','lodash','../../config/logger','api','moment','bluebird'];(function(_0x5c0fd7,_0x55039d){var _0x38c33a=function(_0x31f613){while(--_0x31f613){_0x5c0fd7['push'](_0x5c0fd7['shift']());}};_0x38c33a(++_0x55039d);}(_0x4481,0x187));var _0x1448=function(_0x247a8a,_0xa32324){_0x247a8a=_0x247a8a-0x0;var _0x35bc18=_0x4481[_0x247a8a];return _0x35bc18;};'use strict';var _=require(_0x1448('0x0'));var util=require('util');var logger=require(_0x1448('0x1'))(_0x1448('0x2'));var moment=require(_0x1448('0x3'));var BPromise=require(_0x1448('0x4'));var rp=require(_0x1448('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x1448('0x6'));var config=require('../../config/environment');var attributes=require(_0x1448('0x7'));module[_0x1448('0x8')]=function(_0x1a1fed,_0x4d7ed8){return _0x1a1fed[_0x1448('0x9')](_0x1448('0xa'),attributes,{'tableName':_0x1448('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};