Built motion from commit (unavailable).|2.5.19
[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 _0x4a40=['tools_actions','util','../../config/logger','api','moment','bluebird','path','../../config/environment','./action.attributes','exports'];(function(_0x1bc7e4,_0x114fad){var _0x16f0a5=function(_0x3cd1f2){while(--_0x3cd1f2){_0x1bc7e4['push'](_0x1bc7e4['shift']());}};_0x16f0a5(++_0x114fad);}(_0x4a40,0xa1));var _0x04a4=function(_0x52c1e1,_0x5d4e83){_0x52c1e1=_0x52c1e1-0x0;var _0x25d937=_0x4a40[_0x52c1e1];return _0x25d937;};'use strict';var _=require('lodash');var util=require(_0x04a4('0x0'));var logger=require(_0x04a4('0x1'))(_0x04a4('0x2'));var moment=require(_0x04a4('0x3'));var BPromise=require(_0x04a4('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x04a4('0x5'));var rimraf=require('rimraf');var config=require(_0x04a4('0x6'));var attributes=require(_0x04a4('0x7'));module[_0x04a4('0x8')]=function(_0x5717e1,_0xd901d2){return _0x5717e1['define']('Action',attributes,{'tableName':_0x04a4('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};