190d220b25530e5d22459eb7ebff7a509cac2e34
[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 _0x3438=['../../config/logger','api','moment','request-promise','path','../../config/environment','exports','define','Attachment'];(function(_0x88b51f,_0x3701a2){var _0x4495b8=function(_0x2b1831){while(--_0x2b1831){_0x88b51f['push'](_0x88b51f['shift']());}};_0x4495b8(++_0x3701a2);}(_0x3438,0x14d));var _0x8343=function(_0x56a262,_0xc62957){_0x56a262=_0x56a262-0x0;var _0x50272d=_0x3438[_0x56a262];return _0x50272d;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x8343('0x0'))(_0x8343('0x1'));var moment=require(_0x8343('0x2'));var BPromise=require('bluebird');var rp=require(_0x8343('0x3'));var fs=require('fs');var path=require(_0x8343('0x4'));var rimraf=require('rimraf');var config=require(_0x8343('0x5'));var attributes=require('./attachment.attributes');module[_0x8343('0x6')]=function(_0x3fdd53,_0x13dc46){return _0x3fdd53[_0x8343('0x7')](_0x8343('0x8'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};