Built motion from commit (unavailable).|2.4.18
[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 _0x4849=['path','rimraf','../../config/environment','./attachment.attributes','exports','attachments','lodash','util','../../config/logger','bluebird','request-promise'];(function(_0x2bf141,_0x31eac7){var _0x48277b=function(_0x9fe560){while(--_0x9fe560){_0x2bf141['push'](_0x2bf141['shift']());}};_0x48277b(++_0x31eac7);}(_0x4849,0xf8));var _0x9484=function(_0x4eb7cb,_0x2f7a48){_0x4eb7cb=_0x4eb7cb-0x0;var _0xed8f85=_0x4849[_0x4eb7cb];return _0xed8f85;};'use strict';var _=require(_0x9484('0x0'));var util=require(_0x9484('0x1'));var logger=require(_0x9484('0x2'))('api');var moment=require('moment');var BPromise=require(_0x9484('0x3'));var rp=require(_0x9484('0x4'));var fs=require('fs');var path=require(_0x9484('0x5'));var rimraf=require(_0x9484('0x6'));var config=require(_0x9484('0x7'));var attributes=require(_0x9484('0x8'));module[_0x9484('0x9')]=function(_0x94e9bd,_0xc4337e){return _0x94e9bd['define']('Attachment',attributes,{'tableName':_0x9484('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};