4dfb6067d07022136cc867cac6eac1dfc792cea9
[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 _0x919e=['attachments','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./attachment.attributes','exports','define','Attachment'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0x919e,0x139));var _0xe919=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x919e[_0x14add3];return _0x4a174f;};'use strict';var _=require('lodash');var util=require(_0xe919('0x0'));var logger=require(_0xe919('0x1'))(_0xe919('0x2'));var moment=require(_0xe919('0x3'));var BPromise=require(_0xe919('0x4'));var rp=require(_0xe919('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xe919('0x6'));var config=require(_0xe919('0x7'));var attributes=require(_0xe919('0x8'));module[_0xe919('0x9')]=function(_0x256479,_0x251b02){return _0x256479[_0xe919('0xa')](_0xe919('0xb'),attributes,{'tableName':_0xe919('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};