58a29244cb2f919c9f553843be30dc4b73b0b6e7
[motion2.git] / server / api / userFaxQueue / userFaxQueue.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 _0x37e4=['define','UserFaxQueue','user_has_fax_queues','lodash','bluebird','path','../../config/environment','exports'];(function(_0x3584a7,_0x1e3828){var _0x2ad167=function(_0x41662a){while(--_0x41662a){_0x3584a7['push'](_0x3584a7['shift']());}};_0x2ad167(++_0x1e3828);}(_0x37e4,0x14b));var _0x437e=function(_0x834c09,_0x4a7bb1){_0x834c09=_0x834c09-0x0;var _0x527b97=_0x37e4[_0x834c09];return _0x527b97;};'use strict';var _=require(_0x437e('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x437e('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x437e('0x2'));var rimraf=require('rimraf');var config=require(_0x437e('0x3'));var attributes=require('./userFaxQueue.attributes');module[_0x437e('0x4')]=function(_0x5d323e,_0x56dab4){return _0x5d323e[_0x437e('0x5')](_0x437e('0x6'),attributes,{'tableName':_0x437e('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};