48bbe2ada460692e302d368267da3cee9a6d3901
[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 _0x0556=['CmCompany','cm_companies','util','../../config/logger','api','request-promise','./cmCompany.attributes','exports','define'];(function(_0x31520d,_0x50046a){var _0x4d0d26=function(_0x187fe0){while(--_0x187fe0){_0x31520d['push'](_0x31520d['shift']());}};_0x4d0d26(++_0x50046a);}(_0x0556,0x80));var _0x6055=function(_0x27ed41,_0xb780a1){_0x27ed41=_0x27ed41-0x0;var _0x507934=_0x0556[_0x27ed41];return _0x507934;};'use strict';var _=require('lodash');var util=require(_0x6055('0x0'));var logger=require(_0x6055('0x1'))(_0x6055('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x6055('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x6055('0x4'));module[_0x6055('0x5')]=function(_0x1df437,_0x556a5a){return _0x1df437[_0x6055('0x6')](_0x6055('0x7'),attributes,{'tableName':_0x6055('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};