47ede7a48539edcd3365cb9760d88cd27f76f1d8
[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 _0x66f7=['../../config/environment','exports','define','Attachment','attachments','util','../../config/logger','api','request-promise','path','rimraf'];(function(_0x4df9c2,_0x40c159){var _0x5bfd72=function(_0x25c407){while(--_0x25c407){_0x4df9c2['push'](_0x4df9c2['shift']());}};_0x5bfd72(++_0x40c159);}(_0x66f7,0x73));var _0x766f=function(_0x1ef48d,_0x203c73){_0x1ef48d=_0x1ef48d-0x0;var _0x450096=_0x66f7[_0x1ef48d];return _0x450096;};'use strict';var _=require('lodash');var util=require(_0x766f('0x0'));var logger=require(_0x766f('0x1'))(_0x766f('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x766f('0x3'));var fs=require('fs');var path=require(_0x766f('0x4'));var rimraf=require(_0x766f('0x5'));var config=require(_0x766f('0x6'));var attributes=require('./attachment.attributes');module[_0x766f('0x7')]=function(_0x3aa7d3,_0x380e31){return _0x3aa7d3[_0x766f('0x8')](_0x766f('0x9'),attributes,{'tableName':_0x766f('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};