Built motion from commit 85328c08.|2.5.50
[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 _0xb163=['request-promise','path','rimraf','../../config/environment','./faxAccount.attributes','exports','define','FaxAccount','fax_accounts','api','moment'];(function(_0x295270,_0x205409){var _0x3d65c7=function(_0x56d6c2){while(--_0x56d6c2){_0x295270['push'](_0x295270['shift']());}};_0x3d65c7(++_0x205409);}(_0xb163,0x127));var _0x3b16=function(_0x3eb1c6,_0x49cdf8){_0x3eb1c6=_0x3eb1c6-0x0;var _0x4fbb63=_0xb163[_0x3eb1c6];return _0x4fbb63;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x3b16('0x0'));var moment=require(_0x3b16('0x1'));var BPromise=require('bluebird');var rp=require(_0x3b16('0x2'));var fs=require('fs');var path=require(_0x3b16('0x3'));var rimraf=require(_0x3b16('0x4'));var config=require(_0x3b16('0x5'));var attributes=require(_0x3b16('0x6'));module[_0x3b16('0x7')]=function(_0x30ca0d,_0x35c583){return _0x30ca0d[_0x3b16('0x8')](_0x3b16('0x9'),attributes,{'tableName':_0x3b16('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};