Built motion from commit (unavailable).|2.5.4
[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 _0x34df=['util','../../config/logger','request-promise','path','rimraf','./action.attributes','exports','define','Action','tools_actions'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x34df,0x1a4));var _0xf34d=function(_0x56b138,_0x2396d6){_0x56b138=_0x56b138-0x0;var _0x3df878=_0x34df[_0x56b138];return _0x3df878;};'use strict';var _=require('lodash');var util=require(_0xf34d('0x0'));var logger=require(_0xf34d('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xf34d('0x2'));var fs=require('fs');var path=require(_0xf34d('0x3'));var rimraf=require(_0xf34d('0x4'));var config=require('../../config/environment');var attributes=require(_0xf34d('0x5'));module[_0xf34d('0x6')]=function(_0x3ca501,_0x258f35){return _0x3ca501[_0xf34d('0x7')](_0xf34d('0x8'),attributes,{'tableName':_0xf34d('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};