Built motion from commit c0cdc9d8.|2.6.28
[motion2.git] / server / api / intDeskAccount / intDeskAccount.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 _0x424b=['../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./intDeskAccount.attributes','exports','define','DeskAccount','int_desk_accounts','lodash','util'];(function(_0x5cf9c8,_0x418a21){var _0x46cfb6=function(_0x6d1691){while(--_0x6d1691){_0x5cf9c8['push'](_0x5cf9c8['shift']());}};_0x46cfb6(++_0x418a21);}(_0x424b,0x1e8));var _0xb424=function(_0x30993d,_0x232e6c){_0x30993d=_0x30993d-0x0;var _0x590716=_0x424b[_0x30993d];return _0x590716;};'use strict';var _=require(_0xb424('0x0'));var util=require(_0xb424('0x1'));var logger=require(_0xb424('0x2'))(_0xb424('0x3'));var moment=require(_0xb424('0x4'));var BPromise=require(_0xb424('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xb424('0x6'));var rimraf=require(_0xb424('0x7'));var config=require(_0xb424('0x8'));var attributes=require(_0xb424('0x9'));var integrations=require('../../components/integrations/configuration');module[_0xb424('0xa')]=function(_0x5e9ee4,_0x42f77f){return _0x5e9ee4[_0xb424('0xb')](_0xb424('0xc'),attributes,{'tableName':_0xb424('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};