c2327340a33d9f732bf7e2f7635f2a9c3c3a2037
[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 _0xc92d=['path','rimraf','../../config/environment','exports','define','Action','lodash','../../config/logger','moment','bluebird'];(function(_0x562052,_0x2a4b82){var _0x1c2b67=function(_0x56e89d){while(--_0x56e89d){_0x562052['push'](_0x562052['shift']());}};_0x1c2b67(++_0x2a4b82);}(_0xc92d,0x1d2));var _0xdc92=function(_0x5864d2,_0x42a789){_0x5864d2=_0x5864d2-0x0;var _0x410a6f=_0xc92d[_0x5864d2];return _0x410a6f;};'use strict';var _=require(_0xdc92('0x0'));var util=require('util');var logger=require(_0xdc92('0x1'))('api');var moment=require(_0xdc92('0x2'));var BPromise=require(_0xdc92('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xdc92('0x4'));var rimraf=require(_0xdc92('0x5'));var config=require(_0xdc92('0x6'));var attributes=require('./action.attributes');module[_0xdc92('0x7')]=function(_0x53bae8,_0x11841f){return _0x53bae8[_0xdc92('0x8')](_0xdc92('0x9'),attributes,{'tableName':'tools_actions','paranoid':![],'indexes':[],'timestamps':!![]});};