Built motion from commit (unavailable).|2.4.3
[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 _0xa5fe=['bluebird','path','rimraf','../../config/environment','./disposition.attributes','exports','define','Disposition','name_voice','name','ListId','name_chat','ChatWebsiteId','name_mail','MailAccountId','SmsAccountId','FaxAccountId','name_openchannel','util'];(function(_0x47a954,_0x4738d2){var _0x3da926=function(_0x2fa36b){while(--_0x2fa36b){_0x47a954['push'](_0x47a954['shift']());}};_0x3da926(++_0x4738d2);}(_0xa5fe,0x84));var _0xea5f=function(_0x40911a,_0x55ec99){_0x40911a=_0x40911a-0x0;var _0x27e8e3=_0xa5fe[_0x40911a];return _0x27e8e3;};'use strict';var _=require('lodash');var util=require(_0xea5f('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xea5f('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xea5f('0x2'));var rimraf=require(_0xea5f('0x3'));var config=require(_0xea5f('0x4'));var attributes=require(_0xea5f('0x5'));module[_0xea5f('0x6')]=function(_0x4061cc,_0x39ac5f){return _0x4061cc[_0xea5f('0x7')](_0xea5f('0x8'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0xea5f('0x9'),'fields':[_0xea5f('0xa'),_0xea5f('0xb')]},{'unique':!![],'name':_0xea5f('0xc'),'fields':[_0xea5f('0xa'),_0xea5f('0xd')]},{'unique':!![],'name':_0xea5f('0xe'),'fields':[_0xea5f('0xa'),_0xea5f('0xf')]},{'unique':!![],'name':'name_sms','fields':[_0xea5f('0xa'),_0xea5f('0x10')]},{'unique':!![],'name':'name_fax','fields':[_0xea5f('0xa'),_0xea5f('0x11')]},{'unique':!![],'name':_0xea5f('0x12'),'fields':[_0xea5f('0xa'),'OpenchannelAccountId']}],'timestamps':!![]});};