d64c4eb62a4ccecf6e46ccc5c052192a626e193b
[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 _0x5cc4=['../../config/logger','moment','request-promise','path','../../config/environment','./attachment.attributes','exports','Attachment','attachments'];(function(_0x33115f,_0x3bef4c){var _0xcdaa15=function(_0x245569){while(--_0x245569){_0x33115f['push'](_0x33115f['shift']());}};_0xcdaa15(++_0x3bef4c);}(_0x5cc4,0x18c));var _0x45cc=function(_0x4429e0,_0xee6f1f){_0x4429e0=_0x4429e0-0x0;var _0x51a5b3=_0x5cc4[_0x4429e0];return _0x51a5b3;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x45cc('0x0'))('api');var moment=require(_0x45cc('0x1'));var BPromise=require('bluebird');var rp=require(_0x45cc('0x2'));var fs=require('fs');var path=require(_0x45cc('0x3'));var rimraf=require('rimraf');var config=require(_0x45cc('0x4'));var attributes=require(_0x45cc('0x5'));module[_0x45cc('0x6')]=function(_0x2209ef,_0x54f310){return _0x2209ef['define'](_0x45cc('0x7'),attributes,{'tableName':_0x45cc('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};