4d8a1e4e4951965f95f1de48f70b5fc6a1e4f779
[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 _0x726f=['../../config/environment','./attachment.attributes','exports','define','Attachment','attachments','lodash','util','api','request-promise','path','rimraf'];(function(_0x3ff085,_0x27c92e){var _0x2b68c3=function(_0x37811e){while(--_0x37811e){_0x3ff085['push'](_0x3ff085['shift']());}};_0x2b68c3(++_0x27c92e);}(_0x726f,0xa2));var _0xf726=function(_0x4b055c,_0x4b870b){_0x4b055c=_0x4b055c-0x0;var _0x4b62bb=_0x726f[_0x4b055c];return _0x4b62bb;};'use strict';var _=require(_0xf726('0x0'));var util=require(_0xf726('0x1'));var logger=require('../../config/logger')(_0xf726('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xf726('0x3'));var fs=require('fs');var path=require(_0xf726('0x4'));var rimraf=require(_0xf726('0x5'));var config=require(_0xf726('0x6'));var attributes=require(_0xf726('0x7'));module[_0xf726('0x8')]=function(_0x26ba00,_0x1cae3f){return _0x26ba00[_0xf726('0x9')](_0xf726('0xa'),attributes,{'tableName':_0xf726('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};