b2b6511c386896cda2bb86ac5607b77994a1ec18
[motion2.git] / server / api / faxAccount / faxAccount.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 _0xaf07=['path','exports','FaxAccount','fax_accounts','util','../../config/logger','api','bluebird','request-promise'];(function(_0x469104,_0x42c4ae){var _0x3f4a27=function(_0x2ec8de){while(--_0x2ec8de){_0x469104['push'](_0x469104['shift']());}};_0x3f4a27(++_0x42c4ae);}(_0xaf07,0x12d));var _0x7af0=function(_0x493932,_0x5caf87){_0x493932=_0x493932-0x0;var _0x4b009d=_0xaf07[_0x493932];return _0x4b009d;};'use strict';var _=require('lodash');var util=require(_0x7af0('0x0'));var logger=require(_0x7af0('0x1'))(_0x7af0('0x2'));var moment=require('moment');var BPromise=require(_0x7af0('0x3'));var rp=require(_0x7af0('0x4'));var fs=require('fs');var path=require(_0x7af0('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./faxAccount.attributes');module[_0x7af0('0x6')]=function(_0x2bd5a9,_0x50add7){return _0x2bd5a9['define'](_0x7af0('0x7'),attributes,{'tableName':_0x7af0('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};