4d3f260e4a1b9d7cf27bb2b6145ff57561aaa097
[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 _0xe665=['tools_actions','lodash','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./action.attributes','exports','define'];(function(_0x5ca4ec,_0x1fba8c){var _0x104937=function(_0x3c733f){while(--_0x3c733f){_0x5ca4ec['push'](_0x5ca4ec['shift']());}};_0x104937(++_0x1fba8c);}(_0xe665,0xe5));var _0x5e66=function(_0xb1f83d,_0x4c2cb0){_0xb1f83d=_0xb1f83d-0x0;var _0x2d46c1=_0xe665[_0xb1f83d];return _0x2d46c1;};'use strict';var _=require(_0x5e66('0x0'));var util=require('util');var logger=require(_0x5e66('0x1'))(_0x5e66('0x2'));var moment=require(_0x5e66('0x3'));var BPromise=require(_0x5e66('0x4'));var rp=require(_0x5e66('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x5e66('0x6'));var config=require(_0x5e66('0x7'));var attributes=require(_0x5e66('0x8'));module[_0x5e66('0x9')]=function(_0x44cac4,_0x4ed788){return _0x44cac4[_0x5e66('0xa')]('Action',attributes,{'tableName':_0x5e66('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};