e5d986a887b0dd35c1d0c2ddbb999f42b7f38699
[motion2.git] / server / api / cmCompany / cmCompany.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 _0x4af0=['bluebird','request-promise','path','../../config/environment','exports','define','CmCompany','cm_companies','util','../../config/logger','api','moment'];(function(_0x380e75,_0x486360){var _0x444d96=function(_0x32c8f8){while(--_0x32c8f8){_0x380e75['push'](_0x380e75['shift']());}};_0x444d96(++_0x486360);}(_0x4af0,0x1b8));var _0x04af=function(_0x4c45f1,_0x2765ad){_0x4c45f1=_0x4c45f1-0x0;var _0x49ac1e=_0x4af0[_0x4c45f1];return _0x49ac1e;};'use strict';var _=require('lodash');var util=require(_0x04af('0x0'));var logger=require(_0x04af('0x1'))(_0x04af('0x2'));var moment=require(_0x04af('0x3'));var BPromise=require(_0x04af('0x4'));var rp=require(_0x04af('0x5'));var fs=require('fs');var path=require(_0x04af('0x6'));var rimraf=require('rimraf');var config=require(_0x04af('0x7'));var attributes=require('./cmCompany.attributes');module[_0x04af('0x8')]=function(_0x2f0806,_0x31eb8d){return _0x2f0806[_0x04af('0x9')](_0x04af('0xa'),attributes,{'tableName':_0x04af('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};