31b5592b24f3a562b346507e2471aa7fef43a642
[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 _0x401f=['moment','bluebird','rimraf','../../config/environment','./action.attributes','exports','define','Action','tools_actions','lodash','util','../../config/logger','api'];(function(_0x18a726,_0x408f55){var _0x9f85cb=function(_0x446d3c){while(--_0x446d3c){_0x18a726['push'](_0x18a726['shift']());}};_0x9f85cb(++_0x408f55);}(_0x401f,0x1b6));var _0xf401=function(_0x38f3db,_0x36d5ff){_0x38f3db=_0x38f3db-0x0;var _0x587bb5=_0x401f[_0x38f3db];return _0x587bb5;};'use strict';var _=require(_0xf401('0x0'));var util=require(_0xf401('0x1'));var logger=require(_0xf401('0x2'))(_0xf401('0x3'));var moment=require(_0xf401('0x4'));var BPromise=require(_0xf401('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xf401('0x6'));var config=require(_0xf401('0x7'));var attributes=require(_0xf401('0x8'));module[_0xf401('0x9')]=function(_0x2189f6,_0x1748e6){return _0x2189f6[_0xf401('0xa')](_0xf401('0xb'),attributes,{'tableName':_0xf401('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};