f40e4f43c42a24f3cf48465c907602c4af586889
[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 _0x4af9=['./disposition.attributes','define','Disposition','name_voice','name','ListId','ChatWebsiteId','name_mail','MailAccountId','name_sms','name_fax','name_openchannel','OpenchannelAccountId','name_whatsapp','lodash','util','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x5d43f9,_0x6e53fb){var _0x5018ca=function(_0x583bc3){while(--_0x583bc3){_0x5d43f9['push'](_0x5d43f9['shift']());}};_0x5018ca(++_0x6e53fb);}(_0x4af9,0x12c));var _0x94af=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0x4af9[_0x397e5f];return _0x5302b8;};'use strict';var _=require(_0x94af('0x0'));var util=require(_0x94af('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x94af('0x2'));var BPromise=require(_0x94af('0x3'));var rp=require(_0x94af('0x4'));var fs=require('fs');var path=require(_0x94af('0x5'));var rimraf=require(_0x94af('0x6'));var config=require(_0x94af('0x7'));var attributes=require(_0x94af('0x8'));module['exports']=function(_0x28a640,_0x360a33){return _0x28a640[_0x94af('0x9')](_0x94af('0xa'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0x94af('0xb'),'fields':[_0x94af('0xc'),_0x94af('0xd')]},{'unique':!![],'name':'name_chat','fields':['name',_0x94af('0xe')]},{'unique':!![],'name':_0x94af('0xf'),'fields':[_0x94af('0xc'),_0x94af('0x10')]},{'unique':!![],'name':_0x94af('0x11'),'fields':[_0x94af('0xc'),'SmsAccountId']},{'unique':!![],'name':_0x94af('0x12'),'fields':[_0x94af('0xc'),'FaxAccountId']},{'unique':!![],'name':_0x94af('0x13'),'fields':[_0x94af('0xc'),_0x94af('0x14')]},{'unique':!![],'name':_0x94af('0x15'),'fields':[_0x94af('0xc'),'WhatsappAccountId']}],'timestamps':!![]});};