Built motion from commit (unavailable).|2.5.31
[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 _0xa1cc=['attachments','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf','./attachment.attributes','exports'];(function(_0x16be87,_0x521cf7){var _0x1c9e35=function(_0x56c720){while(--_0x56c720){_0x16be87['push'](_0x16be87['shift']());}};_0x1c9e35(++_0x521cf7);}(_0xa1cc,0x10f));var _0xca1c=function(_0x4e4687,_0x42eb03){_0x4e4687=_0x4e4687-0x0;var _0x225ea9=_0xa1cc[_0x4e4687];return _0x225ea9;};'use strict';var _=require(_0xca1c('0x0'));var util=require(_0xca1c('0x1'));var logger=require(_0xca1c('0x2'))('api');var moment=require(_0xca1c('0x3'));var BPromise=require(_0xca1c('0x4'));var rp=require(_0xca1c('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xca1c('0x6'));var config=require('../../config/environment');var attributes=require(_0xca1c('0x7'));module[_0xca1c('0x8')]=function(_0x375837,_0x98dd5f){return _0x375837['define']('Attachment',attributes,{'tableName':_0xca1c('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};