74a3be6f33776bd67a2a1ec12f4b4f9894271122
[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 _0x924e=['lodash','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./attachment.attributes','exports','define','Attachment','attachments'];(function(_0x56fe98,_0x43dc16){var _0x212f4f=function(_0xc3427d){while(--_0xc3427d){_0x56fe98['push'](_0x56fe98['shift']());}};_0x212f4f(++_0x43dc16);}(_0x924e,0x179));var _0xe924=function(_0x1cb0c8,_0x318554){_0x1cb0c8=_0x1cb0c8-0x0;var _0x4da112=_0x924e[_0x1cb0c8];return _0x4da112;};'use strict';var _=require(_0xe924('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xe924('0x1'));var moment=require(_0xe924('0x2'));var BPromise=require(_0xe924('0x3'));var rp=require(_0xe924('0x4'));var fs=require('fs');var path=require(_0xe924('0x5'));var rimraf=require(_0xe924('0x6'));var config=require(_0xe924('0x7'));var attributes=require(_0xe924('0x8'));module[_0xe924('0x9')]=function(_0x381bd9,_0x34608e){return _0x381bd9[_0xe924('0xa')](_0xe924('0xb'),attributes,{'tableName':_0xe924('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};