ae0ab5e60a68db19511e85de65defd1bb9d0e411
[motion2.git] / server / api / attachment / attachment.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 _0x5800=['Attachment','util','../../config/logger','api','moment','request-promise','path','../../config/environment'];(function(_0x424a9a,_0x2dd9af){var _0xa7831c=function(_0x512534){while(--_0x512534){_0x424a9a['push'](_0x424a9a['shift']());}};_0xa7831c(++_0x2dd9af);}(_0x5800,0x1b9));var _0x0580=function(_0x1bb6fd,_0x591695){_0x1bb6fd=_0x1bb6fd-0x0;var _0x43a800=_0x5800[_0x1bb6fd];return _0x43a800;};'use strict';var _=require('lodash');var util=require(_0x0580('0x0'));var logger=require(_0x0580('0x1'))(_0x0580('0x2'));var moment=require(_0x0580('0x3'));var BPromise=require('bluebird');var rp=require(_0x0580('0x4'));var fs=require('fs');var path=require(_0x0580('0x5'));var rimraf=require('rimraf');var config=require(_0x0580('0x6'));var attributes=require('./attachment.attributes');module['exports']=function(_0x36e61e,_0xe05a43){return _0x36e61e['define'](_0x0580('0x7'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};