705ca3cd8897636a83c8395e641e4643b2ffb400
[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 _0x9ed7=['name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId','WhatsappAccountId','lodash','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','define','Disposition','tools_dispositions','name','ListId','name_sms','SmsAccountId'];(function(_0xd2718b,_0x3c97be){var _0x224e67=function(_0x5ee283){while(--_0x5ee283){_0xd2718b['push'](_0xd2718b['shift']());}};_0x224e67(++_0x3c97be);}(_0x9ed7,0x16d));var _0x79ed=function(_0x22b68a,_0x2bffc3){_0x22b68a=_0x22b68a-0x0;var _0x1ac67a=_0x9ed7[_0x22b68a];return _0x1ac67a;};'use strict';var _=require(_0x79ed('0x0'));var util=require('util');var logger=require(_0x79ed('0x1'))(_0x79ed('0x2'));var moment=require(_0x79ed('0x3'));var BPromise=require(_0x79ed('0x4'));var rp=require(_0x79ed('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x79ed('0x6'));var config=require(_0x79ed('0x7'));var attributes=require('./disposition.attributes');module['exports']=function(_0x1ea74c,_0x224ba0){return _0x1ea74c[_0x79ed('0x8')](_0x79ed('0x9'),attributes,{'tableName':_0x79ed('0xa'),'paranoid':![],'indexes':[{'unique':!![],'name':'name_voice','fields':[_0x79ed('0xb'),_0x79ed('0xc')]},{'unique':!![],'name':'name_chat','fields':[_0x79ed('0xb'),'ChatWebsiteId']},{'unique':!![],'name':'name_mail','fields':['name','MailAccountId']},{'unique':!![],'name':_0x79ed('0xd'),'fields':['name',_0x79ed('0xe')]},{'unique':!![],'name':_0x79ed('0xf'),'fields':[_0x79ed('0xb'),_0x79ed('0x10')]},{'unique':!![],'name':_0x79ed('0x11'),'fields':[_0x79ed('0xb'),_0x79ed('0x12')]},{'unique':!![],'name':'name_whatsapp','fields':[_0x79ed('0xb'),_0x79ed('0x13')]}],'timestamps':!![]});};