Built motion from commit 7158bc59.|2.5.42
[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 _0xd416=['path','./attachment.attributes','exports','Attachment','lodash','../../config/logger','api','moment','bluebird'];(function(_0x33ea46,_0x27da46){var _0x261a12=function(_0x23e9f6){while(--_0x23e9f6){_0x33ea46['push'](_0x33ea46['shift']());}};_0x261a12(++_0x27da46);}(_0xd416,0xe5));var _0x6d41=function(_0x1220bb,_0x4be304){_0x1220bb=_0x1220bb-0x0;var _0x55d857=_0xd416[_0x1220bb];return _0x55d857;};'use strict';var _=require(_0x6d41('0x0'));var util=require('util');var logger=require(_0x6d41('0x1'))(_0x6d41('0x2'));var moment=require(_0x6d41('0x3'));var BPromise=require(_0x6d41('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6d41('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x6d41('0x6'));module[_0x6d41('0x7')]=function(_0x1236ee,_0x452f17){return _0x1236ee['define'](_0x6d41('0x8'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};