8c727092b48ae5243e5362cbf042ae8ea6ef811b
[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 _0xeba4=['./action.attributes','exports','define','Action','lodash','util','api','moment','bluebird','path','rimraf','../../config/environment'];(function(_0x475923,_0x25d9ec){var _0x374030=function(_0x3f256b){while(--_0x3f256b){_0x475923['push'](_0x475923['shift']());}};_0x374030(++_0x25d9ec);}(_0xeba4,0x1b4));var _0x4eba=function(_0x227c59,_0x575c83){_0x227c59=_0x227c59-0x0;var _0x35aeac=_0xeba4[_0x227c59];return _0x35aeac;};'use strict';var _=require(_0x4eba('0x0'));var util=require(_0x4eba('0x1'));var logger=require('../../config/logger')(_0x4eba('0x2'));var moment=require(_0x4eba('0x3'));var BPromise=require(_0x4eba('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4eba('0x5'));var rimraf=require(_0x4eba('0x6'));var config=require(_0x4eba('0x7'));var attributes=require(_0x4eba('0x8'));module[_0x4eba('0x9')]=function(_0x278bfd,_0x1f8585){return _0x278bfd[_0x4eba('0xa')](_0x4eba('0xb'),attributes,{'tableName':'tools_actions','paranoid':![],'indexes':[],'timestamps':!![]});};