Built motion from commit (unavailable).|2.5.13
[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 _0xbfee=['tools_actions','lodash','../../config/logger','api','bluebird','request-promise','rimraf','exports','define','Action'];(function(_0x1e40e9,_0x16cc7a){var _0x3d3cbc=function(_0x51019e){while(--_0x51019e){_0x1e40e9['push'](_0x1e40e9['shift']());}};_0x3d3cbc(++_0x16cc7a);}(_0xbfee,0x155));var _0xebfe=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0xbfee[_0x42cae2];return _0x5f256f;};'use strict';var _=require(_0xebfe('0x0'));var util=require('util');var logger=require(_0xebfe('0x1'))(_0xebfe('0x2'));var moment=require('moment');var BPromise=require(_0xebfe('0x3'));var rp=require(_0xebfe('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xebfe('0x5'));var config=require('../../config/environment');var attributes=require('./action.attributes');module[_0xebfe('0x6')]=function(_0x4b7e0c,_0xf3dc9e){return _0x4b7e0c[_0xebfe('0x7')](_0xebfe('0x8'),attributes,{'tableName':_0xebfe('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};