7f2099a81e9f97b78bf85a22c5d1627bfe376195
[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 _0x0f76=['api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','Attachment','lodash'];(function(_0x443f15,_0x5d3376){var _0xd7c141=function(_0x594cb4){while(--_0x594cb4){_0x443f15['push'](_0x443f15['shift']());}};_0xd7c141(++_0x5d3376);}(_0x0f76,0x18b));var _0x60f7=function(_0x3b1b23,_0x21bccd){_0x3b1b23=_0x3b1b23-0x0;var _0x1efc85=_0x0f76[_0x3b1b23];return _0x1efc85;};'use strict';var _=require(_0x60f7('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x60f7('0x1'));var moment=require(_0x60f7('0x2'));var BPromise=require(_0x60f7('0x3'));var rp=require(_0x60f7('0x4'));var fs=require('fs');var path=require(_0x60f7('0x5'));var rimraf=require(_0x60f7('0x6'));var config=require(_0x60f7('0x7'));var attributes=require('./attachment.attributes');module[_0x60f7('0x8')]=function(_0x6c58aa,_0x467624){return _0x6c58aa[_0x60f7('0x9')](_0x60f7('0xa'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};