418493cca07c5998bcb76c37a702abcf8caa9eb7
[motion2.git] / server / api / disposition / disposition.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 _0x0c42=['../../config/environment','./disposition.attributes','exports','Disposition','name_voice','name','ListId','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','name_openchannel','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','api','moment','path','rimraf'];(function(_0x39e4bf,_0x283d31){var _0x110cde=function(_0x11f510){while(--_0x11f510){_0x39e4bf['push'](_0x39e4bf['shift']());}};_0x110cde(++_0x283d31);}(_0x0c42,0x191));var _0x20c4=function(_0x43094f,_0x4d8955){_0x43094f=_0x43094f-0x0;var _0x397fb5=_0x0c42[_0x43094f];return _0x397fb5;};'use strict';var _=require(_0x20c4('0x0'));var util=require(_0x20c4('0x1'));var logger=require(_0x20c4('0x2'))(_0x20c4('0x3'));var moment=require(_0x20c4('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x20c4('0x5'));var rimraf=require(_0x20c4('0x6'));var config=require(_0x20c4('0x7'));var attributes=require(_0x20c4('0x8'));module[_0x20c4('0x9')]=function(_0x58e1ed,_0x339b15){return _0x58e1ed['define'](_0x20c4('0xa'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0x20c4('0xb'),'fields':[_0x20c4('0xc'),_0x20c4('0xd')]},{'unique':!![],'name':'name_chat','fields':[_0x20c4('0xc'),_0x20c4('0xe')]},{'unique':!![],'name':_0x20c4('0xf'),'fields':[_0x20c4('0xc'),_0x20c4('0x10')]},{'unique':!![],'name':_0x20c4('0x11'),'fields':[_0x20c4('0xc'),_0x20c4('0x12')]},{'unique':!![],'name':_0x20c4('0x13'),'fields':[_0x20c4('0xc'),_0x20c4('0x14')]},{'unique':!![],'name':_0x20c4('0x15'),'fields':[_0x20c4('0xc'),'OpenchannelAccountId']},{'unique':!![],'name':_0x20c4('0x16'),'fields':['name',_0x20c4('0x17')]}],'timestamps':!![]});};