Built motion from commit 911eb874.|2.6.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 _0xc9cc=['Attachment','attachments','lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./attachment.attributes','exports','define'];(function(_0x364667,_0x24e298){var _0x566e2d=function(_0x17faa6){while(--_0x17faa6){_0x364667['push'](_0x364667['shift']());}};_0x566e2d(++_0x24e298);}(_0xc9cc,0x136));var _0xcc9c=function(_0x158015,_0x55d7cc){_0x158015=_0x158015-0x0;var _0x2439fe=_0xc9cc[_0x158015];return _0x2439fe;};'use strict';var _=require(_0xcc9c('0x0'));var util=require(_0xcc9c('0x1'));var logger=require('../../config/logger')(_0xcc9c('0x2'));var moment=require(_0xcc9c('0x3'));var BPromise=require(_0xcc9c('0x4'));var rp=require(_0xcc9c('0x5'));var fs=require('fs');var path=require(_0xcc9c('0x6'));var rimraf=require(_0xcc9c('0x7'));var config=require(_0xcc9c('0x8'));var attributes=require(_0xcc9c('0x9'));module[_0xcc9c('0xa')]=function(_0x4e1008,_0x1d7db1){return _0x4e1008[_0xcc9c('0xb')](_0xcc9c('0xc'),attributes,{'tableName':_0xcc9c('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};