cdd07be242d8a68763151809ffdde90c4f87be9e
[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 _0x0664=['./attachment.attributes','exports','define','Attachment','util','api','moment','request-promise','path','rimraf','../../config/environment'];(function(_0xd9dfa8,_0x4d4a3f){var _0x521b20=function(_0x2fe1d2){while(--_0x2fe1d2){_0xd9dfa8['push'](_0xd9dfa8['shift']());}};_0x521b20(++_0x4d4a3f);}(_0x0664,0x93));var _0x4066=function(_0x3f3bf1,_0x524bcd){_0x3f3bf1=_0x3f3bf1-0x0;var _0x49f87c=_0x0664[_0x3f3bf1];return _0x49f87c;};'use strict';var _=require('lodash');var util=require(_0x4066('0x0'));var logger=require('../../config/logger')(_0x4066('0x1'));var moment=require(_0x4066('0x2'));var BPromise=require('bluebird');var rp=require(_0x4066('0x3'));var fs=require('fs');var path=require(_0x4066('0x4'));var rimraf=require(_0x4066('0x5'));var config=require(_0x4066('0x6'));var attributes=require(_0x4066('0x7'));module[_0x4066('0x8')]=function(_0x2febd3,_0x1e2bf0){return _0x2febd3[_0x4066('0x9')](_0x4066('0xa'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};