1204cf0357e7f9e9880f06382440c70837dc345c
[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 _0x7289=['bluebird','path','rimraf','../../config/environment','./cmCompany.attributes','exports','define','CmCompany','cm_companies','lodash','../../config/logger','api'];(function(_0x2bf141,_0x31eac7){var _0x48277b=function(_0x9fe560){while(--_0x9fe560){_0x2bf141['push'](_0x2bf141['shift']());}};_0x48277b(++_0x31eac7);}(_0x7289,0x189));var _0x9728=function(_0x37bd26,_0x5ad346){_0x37bd26=_0x37bd26-0x0;var _0xe83dc4=_0x7289[_0x37bd26];return _0xe83dc4;};'use strict';var _=require(_0x9728('0x0'));var util=require('util');var logger=require(_0x9728('0x1'))(_0x9728('0x2'));var moment=require('moment');var BPromise=require(_0x9728('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9728('0x4'));var rimraf=require(_0x9728('0x5'));var config=require(_0x9728('0x6'));var attributes=require(_0x9728('0x7'));module[_0x9728('0x8')]=function(_0x576c83,_0x1f7a60){return _0x576c83[_0x9728('0x9')](_0x9728('0xa'),attributes,{'tableName':_0x9728('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};